cmd, crypto: fixed nil public keys and updated web3

pull/2001/head
Jeffrey Wilcke 9 years ago
parent 6bb29aebee
commit b1e0143444
  1. 4
      cmd/geth/js.go
  2. 7750
      jsre/ethereum_js.go
  3. 2
      xeth/xeth.go

@ -299,12 +299,12 @@ func (js *jsre) apiBindings(f xeth.Frontend) error {
utils.Fatalf("Error loading web3.js: %v", err)
}
_, err = js.re.Run("var web3 = require('web3');")
_, err = js.re.Run("var Web3 = require('web3');")
if err != nil {
utils.Fatalf("Error requiring web3: %v", err)
}
_, err = js.re.Run("web3.setProvider(jeth)")
_, err = js.re.Run("var web3 = new Web3(jeth);")
if err != nil {
utils.Fatalf("Error setting web3 provider: %v", err)
}

File diff suppressed because it is too large Load Diff

@ -644,8 +644,10 @@ func (p *XEth) NewWhisperFilter(to, from string, topics [][]string) int {
callback := func(msg WhisperMessage) {
p.messagesMu.RLock() // Only read lock to the filter pool
defer p.messagesMu.RUnlock()
if p.messages[id] != nil {
p.messages[id].insert(msg)
}
}
// Initialize the core whisper filter and wrap into xeth
id = p.Whisper().Watch(to, from, topics, callback)

Loading…
Cancel
Save