Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix_incorrect_v2_pool_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: patch
---

# Fix incorrect v2 pool index.
2 changes: 1 addition & 1 deletion chain/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ func (m *Manager) AddV2PoolTransactions(basis types.ChainIndex, txns []types.V2T
return false, fmt.Errorf("transaction %v conflicts with pool: %w", txid, err)
}
m.txpool.ms.ApplyV2Transaction(txn)
m.txpool.indices[txid] = len(m.txpool.txns)
m.txpool.indices[txid] = len(m.txpool.v2txns)
m.txpool.v2txns = append(m.txpool.v2txns, txn)
Comment thread
n8mgr marked this conversation as resolved.
m.txpool.weight += m.tipState.V2TransactionWeight(txn)
}
Expand Down
Loading