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 /chain/transaction.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 'chain/transaction.go')
-rw-r--r-- | chain/transaction.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/chain/transaction.go b/chain/transaction.go index d81a0ea1b..47257a3f0 100644 --- a/chain/transaction.go +++ b/chain/transaction.go @@ -79,12 +79,7 @@ func (tx *Transaction) IsContract() bool { func (tx *Transaction) CreationAddress(state *state.State) []byte { // Generate a new address - addr := crypto.Sha3(ethutil.NewValue([]interface{}{tx.Sender(), tx.Nonce}).Encode())[12:] - //for i := uint64(0); state.GetStateObject(addr) != nil; i++ { - // addr = crypto.Sha3(ethutil.NewValue([]interface{}{tx.Sender(), tx.Nonce + i}).Encode())[12:] - //} - - return addr + return crypto.Sha3(ethutil.NewValue([]interface{}{tx.Sender(), tx.Nonce}).Encode())[12:] } func (tx *Transaction) Signature(key []byte) []byte { |