Skip to content

Commit 9e93167

Browse files
committed
Fix txpool.add
1 parent d49f0be commit 9e93167

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/tx_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err e
685685
pool.filterKnownTxsLocked(txs, errs)
686686
pool.filterInvalidTxsLocked(txs, errs, local)
687687
pool.filterInvalidBlobTxsLocked(txs, errs)
688-
if errs[0] != nil {
688+
if errs[0] == nil {
689689
return pool.addValidTx(tx, local)
690690
}
691691
return false, errs[0]

eth/catalyst/api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ func setBlockhash(data *beacon.ExecutableDataV1) *beacon.ExecutableDataV1 {
704704
GasUsed: data.GasUsed,
705705
Time: data.Timestamp,
706706
BaseFee: data.BaseFeePerGas,
707-
Blobs: data.Blobs,
707+
ExcessBlobs: data.ExcessBlobs,
708708
Extra: data.ExtraData,
709709
MixDigest: data.Random,
710710
}

0 commit comments

Comments
 (0)