aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-06-11 20:05:32 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-06-30 00:51:47 +0800
commit654564e164b3b6f7f4ba1e8bbd6fcd64776068fa (patch)
treebac9d2b3094d23001f3c1a70389ddb57de37477d /eth
parent9d8b512b27f691fc1980b850e04eb436a3938626 (diff)
downloaddexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.tar.gz
dexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.tar.zst
dexon-654564e164b3b6f7f4ba1e8bbd6fcd64776068fa.zip
core/types: make transactions immutable
Diffstat (limited to 'eth')
-rw-r--r--eth/protocol_test.go4
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
}