Skip to content

Commit

Permalink
Add additional snowstorm lookup check (ava-labs#2790)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Mar 25, 2023
1 parent fad0ef4 commit bed13fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snow/consensus/snowstorm/directed.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,10 @@ func (dg *Directed) accept(ctx context.Context, txID ids.ID) error {
// reject all the named txIDs and remove them from the graph
func (dg *Directed) reject(ctx context.Context, conflictIDs set.Set[ids.ID]) error {
for conflictKey := range conflictIDs {
conflict := dg.txs[conflictKey]
conflict, exists := dg.txs[conflictKey]
if !exists {
continue
}
// This tx is no longer an option for consuming the UTXOs from its
// inputs, so we should remove their reference to this tx.
for _, inputID := range conflict.tx.InputIDs() {
Expand Down

0 comments on commit bed13fc

Please sign in to comment.