diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-02 03:18:09 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-02 03:18:09 +0800 |
commit | 6dc46d3341dc5fa25bd005f9606de258874139be (patch) | |
tree | 39b5d7dad5a943de4e187f99c93da5aa7fc9f2b8 /cmd/mist/ui_lib.go | |
parent | a3559c5e1b469890bb8d71e9992175febaae31c7 (diff) | |
download | dexon-6dc46d3341dc5fa25bd005f9606de258874139be.tar dexon-6dc46d3341dc5fa25bd005f9606de258874139be.tar.gz dexon-6dc46d3341dc5fa25bd005f9606de258874139be.tar.bz2 dexon-6dc46d3341dc5fa25bd005f9606de258874139be.tar.lz dexon-6dc46d3341dc5fa25bd005f9606de258874139be.tar.xz dexon-6dc46d3341dc5fa25bd005f9606de258874139be.tar.zst dexon-6dc46d3341dc5fa25bd005f9606de258874139be.zip |
Changed the way transactions are being added to the transaction pool
Diffstat (limited to 'cmd/mist/ui_lib.go')
-rw-r--r-- | cmd/mist/ui_lib.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/mist/ui_lib.go b/cmd/mist/ui_lib.go index 4e480144f..15799eb6a 100644 --- a/cmd/mist/ui_lib.go +++ b/cmd/mist/ui_lib.go @@ -127,7 +127,11 @@ func (self *UiLib) PastPeers() *ethutil.List { func (self *UiLib) ImportTx(rlpTx string) { tx := chain.NewTransactionFromBytes(ethutil.Hex2Bytes(rlpTx)) - self.eth.TxPool().QueueTransaction(tx) + //self.eth.TxPool().QueueTransaction(tx) + err := self.eth.TxPool().Add(tx) + if err != nil { + guilogger.Infoln("import tx failed ", err) + } } func (self *UiLib) EvalJavascriptFile(path string) { @@ -305,7 +309,7 @@ func mapToTxParams(object map[string]interface{}) map[string]string { return conv } -func (self *UiLib) Transact(params map[string]interface{}) (*xeth.JSReceipt, error) { +func (self *UiLib) Transact(params map[string]interface{}) (string, error) { object := mapToTxParams(params) return self.JSXEth.Transact( |