OSDN Git Service

add error code for veto (#219)
[bytom/vapor.git] / api / errors.go
index 7c5debd..5391d07 100644 (file)
@@ -71,6 +71,7 @@ var respErrFormatter = map[error]httperror.Info{
        txbuilder.ErrOrphanTx:           {400, "BTM712", "Transaction input UTXO not found"},
        txbuilder.ErrExtTxFee:           {400, "BTM713", "Transaction fee exceeded max limit"},
        txbuilder.ErrNoGasInput:         {400, "BTM714", "Transaction has no gas input"},
+       account.ErrVoteLock:             {400, "BTM715", "Locked by the vote"},
 
        // Submit transaction error namespace (73x ~ 79x)
        // Validation error (73x ~ 75x)