Class: VerifyError

protocol/errors~VerifyError

new VerifyError(msg, code, reason, score)

An error thrown during verification. Can be either a mempool transaction validation error or a blockchain block verification error. Ultimately used to send reject packets to peers.

Parameters:
Name Type Description
msg Block | TX
code String

Reject packet code.

reason String

Reject packet reason.

score Number

Ban score increase (can be -1 for no reject packet).

Properties:
Name Type Description
code String
hash Buffer
height Number

(will be the coinbase height if not present).

score Number
message String
Source:

Extends

  • Error