Class: VerifyError

protocol/errors~VerifyError(msg, code, reason, score, malleated)

Verify Error 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.

Constructor

new VerifyError(msg, code, reason, score, malleated)

Create a verify error.

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).

malleated Boolean
Source:

Extends

  • Error