diff options
author | Felix Lange <fjl@twurst.com> | 2017-01-05 19:59:17 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-01-05 19:59:17 +0800 |
commit | e171bf74f8b6d15c2ae51e259d703ee5b729a298 (patch) | |
tree | b7924c1c57d69d433cb8c6645d0b2e57743daeee /core/bench_test.go | |
parent | bbc4ea4ae8e8a962deae3d5693d9d4a9376eab88 (diff) | |
download | dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.gz dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.zst dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.zip |
core/types: remove redundant SignECDSA wrappers, rename to SignTx
Diffstat (limited to 'core/bench_test.go')
-rw-r--r-- | core/bench_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bench_test.go b/core/bench_test.go index a208ea250..5785748a1 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -83,7 +83,7 @@ func genValueTx(nbytes int) func(int, *BlockGen) { toaddr := common.Address{} data := make([]byte, nbytes) gas := IntrinsicGas(data, false, false) - tx, _ := types.NewTransaction(gen.TxNonce(benchRootAddr), toaddr, big.NewInt(1), gas, nil, data).SignECDSA(types.HomesteadSigner{}, benchRootKey) + tx, _ := types.SignTx(types.NewTransaction(gen.TxNonce(benchRootAddr), toaddr, big.NewInt(1), gas, nil, data), types.HomesteadSigner{}, benchRootKey) gen.AddTx(tx) } } @@ -123,7 +123,7 @@ func genTxRing(naccounts int) func(int, *BlockGen) { nil, nil, ) - tx, _ = tx.SignECDSA(types.HomesteadSigner{}, ringKeys[from]) + tx, _ = types.SignTx(tx, types.HomesteadSigner{}, ringKeys[from]) gen.AddTx(tx) from = to } |