@@ -2535,7 +2535,7 @@ func testReorgToShorterRemovesCanonMappingHeaderChain(t *testing.T, scheme strin
2535
2535
}
2536
2536
2537
2537
// Benchmarks large blocks with value transfers to non-existing accounts
2538
- func benchmarkLargeNumberOfValueToNonexisting (b * testing.B , numTxs , numBlocks int , recipientFn func (uint64 ) common.Address , dataFn func ( uint64 ) [] byte ) {
2538
+ func benchmarkLargeNumberOfValueToNonexisting (b * testing.B , numTxs , numBlocks int , recipientFn func (uint64 ) common.Address ) {
2539
2539
var (
2540
2540
signer = types.HomesteadSigner {}
2541
2541
testBankKey , _ = crypto .HexToECDSA ("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291" )
@@ -2598,10 +2598,7 @@ func BenchmarkBlockChain_1x1000ValueTransferToNonexisting(b *testing.B) {
2598
2598
recipientFn := func (nonce uint64 ) common.Address {
2599
2599
return common .BigToAddress (new (big.Int ).SetUint64 (1337 + nonce ))
2600
2600
}
2601
- dataFn := func (nonce uint64 ) []byte {
2602
- return nil
2603
- }
2604
- benchmarkLargeNumberOfValueToNonexisting (b , numTxs , numBlocks , recipientFn , dataFn )
2601
+ benchmarkLargeNumberOfValueToNonexisting (b , numTxs , numBlocks , recipientFn )
2605
2602
}
2606
2603
2607
2604
func BenchmarkBlockChain_1x1000ValueTransferToExisting (b * testing.B ) {
@@ -2615,10 +2612,7 @@ func BenchmarkBlockChain_1x1000ValueTransferToExisting(b *testing.B) {
2615
2612
recipientFn := func (nonce uint64 ) common.Address {
2616
2613
return common .BigToAddress (new (big.Int ).SetUint64 (1337 ))
2617
2614
}
2618
- dataFn := func (nonce uint64 ) []byte {
2619
- return nil
2620
- }
2621
- benchmarkLargeNumberOfValueToNonexisting (b , numTxs , numBlocks , recipientFn , dataFn )
2615
+ benchmarkLargeNumberOfValueToNonexisting (b , numTxs , numBlocks , recipientFn )
2622
2616
}
2623
2617
2624
2618
func BenchmarkBlockChain_1x1000Executions (b * testing.B ) {
@@ -2632,10 +2626,7 @@ func BenchmarkBlockChain_1x1000Executions(b *testing.B) {
2632
2626
recipientFn := func (nonce uint64 ) common.Address {
2633
2627
return common .BigToAddress (new (big.Int ).SetUint64 (0xc0de ))
2634
2628
}
2635
- dataFn := func (nonce uint64 ) []byte {
2636
- return nil
2637
- }
2638
- benchmarkLargeNumberOfValueToNonexisting (b , numTxs , numBlocks , recipientFn , dataFn )
2629
+ benchmarkLargeNumberOfValueToNonexisting (b , numTxs , numBlocks , recipientFn )
2639
2630
}
2640
2631
2641
2632
// Tests that importing a some old blocks, where all blocks are before the
0 commit comments