We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f1e40 commit 3023473Copy full SHA for 3023473
core/types/transaction_signing_test.go
@@ -25,6 +25,7 @@ import (
25
"github.com/ethereum/go-ethereum/common"
26
"github.com/ethereum/go-ethereum/crypto"
27
"github.com/ethereum/go-ethereum/params"
28
+ "github.com/ethereum/go-ethereum/params/forks"
29
"github.com/ethereum/go-ethereum/rlp"
30
)
31
@@ -188,3 +189,14 @@ func createTestLegacyTxInner() *LegacyTx {
188
189
Data: nil,
190
}
191
192
+
193
+func Benchmark_modernSigner_Equal(b *testing.B) {
194
+ signer1 := newModernSigner(big.NewInt(1), forks.Amsterdam)
195
+ signer2 := newModernSigner(big.NewInt(1), forks.Amsterdam)
196
197
+ for b.Loop() {
198
+ if !signer1.Equal(signer2) {
199
+ b.Fatal("expected signers to be equal")
200
+ }
201
202
+}
0 commit comments