diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-24 02:25:50 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-24 02:25:50 +0800 |
commit | 747647e02a310e75ea1ada335ff99963972ca138 (patch) | |
tree | 52a7d2d8d2f36f9c3cd0eacefeeb5c5203a65618 /xeth | |
parent | 0b57bad2de08f382c1b36045db4c66b84d207d3b (diff) | |
parent | b2a225a52e45315f3ec90e11707fefa6059d13f5 (diff) | |
download | go-tangerine-747647e02a310e75ea1ada335ff99963972ca138.tar go-tangerine-747647e02a310e75ea1ada335ff99963972ca138.tar.gz go-tangerine-747647e02a310e75ea1ada335ff99963972ca138.tar.bz2 go-tangerine-747647e02a310e75ea1ada335ff99963972ca138.tar.lz go-tangerine-747647e02a310e75ea1ada335ff99963972ca138.tar.xz go-tangerine-747647e02a310e75ea1ada335ff99963972ca138.tar.zst go-tangerine-747647e02a310e75ea1ada335ff99963972ca138.zip |
Merge branch 'master' into develop
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 5907a8329..2985ce982 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -277,7 +277,7 @@ func (self *XEth) Transact(toStr, valueStr, gasStr, gasPriceStr, codeStr string) } var err error - state := self.eth.ChainManager().TransState() + state := self.eth.ChainManager().TxState() if balance := state.GetBalance(key.Address()); balance.Cmp(tx.Value()) < 0 { return "", fmt.Errorf("insufficient balance. balance=%v tx=%v", balance, tx.Value()) } @@ -289,10 +289,10 @@ 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) + //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 { |