add error code for k parameter
@@ -11,6 +11,7 @@ pub enum Error {
DiffTargetHeader, // TODO: rename to self-explanatory
MalformedTxid,
Confirmations, // TODO: rename to self-explanatory
+ InsufficientStableConfirmations,
InvalidMerkleProof,
Invalid,
Shutdown,
@@ -43,6 +44,7 @@ impl Error {
Error::DiffTargetHeader => "Incorrect difficulty target specified in block header",
Error::MalformedTxid => "Malformed transaction identifier",
Error::Confirmations => "Transaction has less confirmations than requested",
+ Error::InsufficientStableConfirmations => "Transaction has less confirmations than the global STABLE_TRANSACTION_CONFIRMATIONS parameter",
Error::InvalidMerkleProof => "Invalid Merkle Proof",
Error::BlockNotFound => "Block header not found for given hash",
Error::TxFormat => "Transaction has incorrect format",
