package
2.1.6-1+incompatible
Repository: https://github.com/akfork/derosuite.git
Documentation: pkg.go.dev

# Functions

// gives length of currently available checkpoints func Length() uint64 { switch globals.Config.Name { case "mainnet": return mainnet_checkpoints_height case "testnet": return testnet_checkpoints_height default: return 0 } // we can never reach here //return 0 } */.
// tell whether a checkpoint is known in the current selected network func IsCheckPointKnown(hash crypto.Hash, height uint64) (result bool) { var known_hash crypto.Hash switch globals.Config.Name { case "mainnet": if height < mainnet_checkpoints_height { copy(known_hash[:], mainnet_checkpoints[32*height:]) if known_hash == hash { result = true return } } case "testnet": if height < testnet_checkpoints_height { copy(known_hash[:], testnet_checkpoints[32*height:]) if known_hash == hash { result = true return } } default: panic(fmt.Sprintf("Unknown Network \"%s\"", globals.Config.Name)) } return } */ tell whether a checkpoint is known in the current selected network.
load checkpoints from the data directory a line should be printed on console when we are doing this.