Class: VerifyError

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

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, malleatedopt)

Create a verify error.

Parameters:
Name Type Attributes Default Description
msg Block | TX | Claim
code String

Reject packet code.

reason String

Reject packet reason.

score Number

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

malleated Boolean <optional>
false
Properties:
Name Type Description
msg Block | TX | Claim
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