diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-02 04:13:59 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-02 04:13:59 +0800 |
commit | e6a68f0c3ab4987fa5e0e35cac765d40ff305aea (patch) | |
tree | d9f55f57fa90654777155487c5ab649ae76e9096 /ethchain | |
parent | d2ab322267e489f47b4b908d060411eb0554a029 (diff) | |
download | dexon-e6a68f0c3ab4987fa5e0e35cac765d40ff305aea.tar.gz dexon-e6a68f0c3ab4987fa5e0e35cac765d40ff305aea.tar.zst dexon-e6a68f0c3ab4987fa5e0e35cac765d40ff305aea.zip |
Removed debug log
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_object.go | 1 | ||||
-rw-r--r-- | ethchain/transaction_pool.go | 14 |
2 files changed, 6 insertions, 9 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go index 8e921795d..4ec91d2e0 100644 --- a/ethchain/state_object.go +++ b/ethchain/state_object.go @@ -80,7 +80,6 @@ func (c *StateObject) SetAddr(addr []byte, value interface{}) { func (c *StateObject) SetMem(num *big.Int, val *ethutil.Value) { addr := ethutil.BigToBytes(num, 256) c.SetAddr(addr, val) - //c.state.trie.Update(string(addr), string(val.Encode())) } func (c *StateObject) GetMem(num *big.Int) *ethutil.Value { diff --git a/ethchain/transaction_pool.go b/ethchain/transaction_pool.go index 8fbe676f5..72836d6cb 100644 --- a/ethchain/transaction_pool.go +++ b/ethchain/transaction_pool.go @@ -91,14 +91,12 @@ func (pool *TxPool) addTransaction(tx *Transaction) { // Process transaction validates the Tx and processes funds from the // sender to the recipient. func (pool *TxPool) ProcessTransaction(tx *Transaction, block *Block, toContract bool) (err error) { - /* - defer func() { - if r := recover(); r != nil { - log.Println(r) - err = fmt.Errorf("%v", r) - } - }() - */ + defer func() { + if r := recover(); r != nil { + log.Println(r) + err = fmt.Errorf("%v", r) + } + }() // Get the sender sender := block.state.GetAccount(tx.Sender()) |