fix: TestValidateTxBlockSize (#1067)

This commit is contained in:
Ömer Faruk Irmak 2024-10-11 17:05:08 +03:00 committed by GitHub
parent f00dc06628
commit aa3af46a37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2685,7 +2685,7 @@ func TestValidateTxBlockSize(t *testing.T) {
account := crypto.PubkeyToAddress(key.PublicKey)
testAddBalance(pool, account, big.NewInt(1000000000000000000))
validTx := pricedDataTransaction(1, 2100000, big.NewInt(1), key, uint64(*pool.chainconfig.Scroll.MaxTxPayloadBytesPerBlock)-128)
validTx := pricedDataTransaction(1, 2100000, big.NewInt(1), key, uint64(float64(*pool.chainconfig.Scroll.MaxTxPayloadBytesPerBlock)*float64(0.9)))
oversizedTx := pricedDataTransaction(2, 2100000, big.NewInt(1), key, uint64(*pool.chainconfig.Scroll.MaxTxPayloadBytesPerBlock))
tests := []struct {