Skip to content

Commit

Permalink
chainsync: Addnew method to fetch checkpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Ononiwu Maureen <[email protected]>
  • Loading branch information
Ononiwu Maureen committed Mar 12, 2024
1 parent 7d1497c commit 8981178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chainsync/filtercontrol.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func ControlCFHeader(params chaincfg.Params, fType wire.FilterType,
return nil
}

func FetchControlCFHeader(params chaincfg.Params) map[uint32]*chainhash.Hash {
return filterHeaderCheckpoints[params.Net]
}

// hashFromStr makes a chainhash.Hash from a valid hex string. If the string is
// invalid, a nil pointer will be returned.
func hashFromStr(hexStr string) *chainhash.Hash {
Expand Down

0 comments on commit 8981178

Please sign in to comment.