Skip to content

Commit

Permalink
change TestScan to insert hosts the proper way (through announcements…
Browse files Browse the repository at this point in the history
… in a transaction and then mining a block with that txn) rather than through unexported addHosts method, simplify query used in addHosts because we only need to update lastAnnouncement and the net addresses for that host, use a separate query for unsuccessful scans and successful scans in addHostScans
  • Loading branch information
chris124567 committed Nov 25, 2024
1 parent bf7754c commit 83584d3
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 174 deletions.
1 change: 1 addition & 0 deletions explorer/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ func AppliedEvents(cs consensus.State, b types.Block, cu ChainUpdate) []Event {
})
}
}

addEvent(types.Hash256(txn.ID()), cs.Index.Height, &e, relevant) // transaction maturity height is the current block height
}

Expand Down
Loading

0 comments on commit 83584d3

Please sign in to comment.