MsgGetHeaders constructor
MsgGetHeaders({})
Creates a new MsgGetHeaders message.
Implementation
MsgGetHeaders({
required this.protocolVersion,
required this.blockLocatorHashes,
required this.hashStop,
}) {
if (blockLocatorHashes.length > maxBlockLocatorsPerMsg) {
throw WireException('getheaders',
'Too many block locator hashes: ${blockLocatorHashes.length}, max: $maxBlockLocatorsPerMsg');
}
}