diff options
author | Felix Lange <fjl@twurst.com> | 2015-06-11 20:05:32 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-06-30 00:51:47 +0800 |
commit | 654564e164b3b6f7f4ba1e8bbd6fcd64776068fa (patch) | |
tree | bac9d2b3094d23001f3c1a70389ddb57de37477d /eth | |
parent | 9d8b512b27f691fc1980b850e04eb436a3938626 (diff) | |
download | dexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.tar dexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.tar.gz dexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.tar.bz2 dexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.tar.lz dexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.tar.xz dexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.tar.zst dexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.zip |
core/types: make transactions immutable
Diffstat (limited to 'eth')
-rw-r--r-- | eth/protocol_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/protocol_test.go b/eth/protocol_test.go index 6e0eef59c..60fa35443 100644 --- a/eth/protocol_test.go +++ b/eth/protocol_test.go @@ -234,7 +234,7 @@ func (pool *fakeTxPool) GetTransactions() types.Transactions { func newtx(from *crypto.Key, nonce uint64, datasize int) *types.Transaction { data := make([]byte, datasize) - tx := types.NewTransactionMessage(common.Address{}, big.NewInt(0), big.NewInt(100000), big.NewInt(0), data) - tx.SetNonce(nonce) + tx := types.NewTransaction(nonce, common.Address{}, big.NewInt(0), big.NewInt(100000), big.NewInt(0), data) + tx, _ = tx.SignECDSA(from.PrivateKey) return tx } |