diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-22 20:12:01 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-22 20:12:01 +0800 |
commit | 483d96a89d68023360d211ab329400f4b960fe48 (patch) | |
tree | 985a6cd9d713cb36e57064da5b465d8810bc42d0 /xeth | |
parent | bba7ccb07f08e0c6ad404abfb363deaec1db5fab (diff) | |
download | go-tangerine-483d96a89d68023360d211ab329400f4b960fe48.tar.gz go-tangerine-483d96a89d68023360d211ab329400f4b960fe48.tar.zst go-tangerine-483d96a89d68023360d211ab329400f4b960fe48.zip |
Added eth_logs & fixed issue with manual log filtering
* Implemented `eth_logs`
* Fixed issue with `filter.Find()` where logs were appended to an
incorrect, non-returned slice resulting in no logs found
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index f3569e454..5907a8329 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -288,13 +288,11 @@ func (self *XEth) Transact(toStr, valueStr, gasStr, gasPriceStr, codeStr string) //fmt.Printf("create tx: %x %v\n", tx.Hash()[:4], tx.Nonce()) - /* - // Do some pre processing for our "pre" events and hooks - block := self.chainManager.NewBlock(key.Address()) - coinbase := state.GetOrNewStateObject(key.Address()) - coinbase.SetGasPool(block.GasLimit()) - self.blockProcessor.ApplyTransactions(coinbase, state, block, types.Transactions{tx}, true) - */ + // Do some pre processing for our "pre" events and hooks + block := self.chainManager.NewBlock(key.Address()) + coinbase := state.GetOrNewStateObject(key.Address()) + coinbase.SetGasPool(block.GasLimit()) + self.blockProcessor.ApplyTransactions(coinbase, state, block, types.Transactions{tx}, true) err = self.eth.TxPool().Add(tx) if err != nil { |