Skip to content

Commit aa3af46

Browse files
authored
fix: TestValidateTxBlockSize (#1067)
1 parent f00dc06 commit aa3af46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/tx_pool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@ func TestValidateTxBlockSize(t *testing.T) {
26852685
account := crypto.PubkeyToAddress(key.PublicKey)
26862686
testAddBalance(pool, account, big.NewInt(1000000000000000000))
26872687

2688-
validTx := pricedDataTransaction(1, 2100000, big.NewInt(1), key, uint64(*pool.chainconfig.Scroll.MaxTxPayloadBytesPerBlock)-128)
2688+
validTx := pricedDataTransaction(1, 2100000, big.NewInt(1), key, uint64(float64(*pool.chainconfig.Scroll.MaxTxPayloadBytesPerBlock)*float64(0.9)))
26892689
oversizedTx := pricedDataTransaction(2, 2100000, big.NewInt(1), key, uint64(*pool.chainconfig.Scroll.MaxTxPayloadBytesPerBlock))
26902690

26912691
tests := []struct {

0 commit comments

Comments
 (0)