# Error Code
| code                          | English                                          | Chinese                                   |
| :---------------------------- | :----------------------------------------------- | :---------------------------------------- |
| ErrNotFound                   | Not Found                                        | 未找到                                    |
| ErrNoBalance                  | Low Balance                                      | 余额不足                                  |
| ErrBalanceLessThanTenTimesFee | Balance Less Than Ten Times TxFee                | 余额小于十倍交易费                        |
| ErrBlockExec                  | Block Execution Error                            | 区块执行错误                              |
| ErrCheckStateHash             | State Hash Error                                 | 状态哈希错误                              |
| ErrCheckTxHash                | Tx Hash Error                                    | 交易哈希错误                              |
| ErrReRunGenesis               | Rerun Genesis                                    | 重复运行创世区块                          |
| ErrActionNotSupport           | Action Not Support                               | 操作不支持                                |
| ErrChannelFull                | Channel Is Full                                  | 信道已满                                  |
| ErrAmount                     | Amount Error                                     | 总量错误                                  |
| ErrTxExpire                   | Tx Expire                                        | 交易过期                                  |
| ErrNoTicket                   | No Ticket                                        | 票不足                                    |
| ErrMinerIsStared              | Miner Is Stared                                  | 矿工已启动                                |
| ErrMinerNotStared             | Miner Not Stared                                 | 矿工未启动                                |
| ErrTicketCount                | Ticket Count Error                               | 票数量错误                                |
| ErrHashlockAmount             | Hashlock Amount Error                            | 哈希锁数量错误                            |
| ErrHashlockHash               | Hashlock Hash Error                              | 哈希锁哈希错误                            |
| ErrHashlockStatus             | Hashlock Status Error                            | 哈希锁状态错误                            |
| ErrFeeTooLow                  | Fee Too Low                                      | 交易费过低                                |
| ErrNoPeer                     | No Peer                                          | 无远程节点                                |
| ErrSign                       | Sign Error                                       | 签名错误                                  |
| ErrExecNameNotMath            | Exec Name Not Math                               | 执行名称不匹配                            |
| ErrChannelClosed              | Channel Closed                                   | 信道关闭                                  |
| ErrNotMinered                 | Not Minered                                      | 非矿工                                    |
| ErrTime                       | Time Error                                       | 时间错误                                  |
| ErrFromAddr                   | From Addr Error                                  | 发送方地址错误                            |
| ErrBlockHeight                | Block Height Error                               | 区块高度错误                              |
| ErrEmptyTx                    | Empty Tx                                         | 空交易                                    |
| ErrCoinBaseExecer             | Coinbase Execer Error                            | Coinbase执行器错误                        |
| ErrCoinBaseTxType             | Coinbase Tx Type Error                           | Coinbase交易类型错误                      |
| ErrCoinBaseExecErr            | Coinbase Exec Error                              | Coinbase执行错误                          |
| ErrCoinBaseTarget             | Coinbase Target Error                            | Coinbase目标错误                          |
| ErrCoinbaseReward             | Coinbase Reward Error                            | Coinbase奖励错误                          |
| ErrNotAllowDeposit            | Not Allow Deposit                                | 不允许存款                                |
| ErrCoinBaseIndex              | Coinbase Index Error                             | Coinbase索引错误                          |
| ErrCoinBaseTicketStatus       | Coinbase Ticket Status Error                     | Coinbase票状态错误                        |
| ErrBlockNotFound              | Block Not Found                                  | 未发现区块                                |
| ErrHashlockReturnAddrss       | Hashlock Return Addrss Error                     | 哈希锁返回地址错误                        |
| ErrHashlockTime               | Hashlock Time Error                              | 哈希锁时间错误                            |
| ErrHashlockReapeathash        | Hashlock Reapeat Hash Error                      | 哈希锁重复哈希错误                        |
| ErrStartBigThanEnd            | Start Bigger Than End                            | 开始高度大于结束高度                      |
| ErrToAddrNotSameToExecAddr    | To Addr Not Same To Exec Addr                    | 接收地址与执行地址不同                    |
| ErrTypeAsset                  | Type Asset Error                                 | 类型资产错误                              |
| ErrEmpty                      | Empty                                            | 空                                        |
| ErrSendSameToRecv             | Send Same To Recv                                | 发送地址与接收地址相同                    |
| ErrTxMsgSizeTooBig            | Tx Msg Size Too Big                              | 交易消息过大                              |
| ErrTxFeeTooLow                | TxFee Too Low                                    | 交易费过低                                |
| ErrExecNameNotAllow           | Exec Name Not Allow                              | 执行名称不允许                            |
| ErrLocalDBPerfix              | Local DB Perfix Error                            | 本地数据库前缀错误                        |
| ErrTimeout                    | Timeout                                          | 超时                                      |
| ErrTxExist                    | Tx Exists                                        | 交易已存在                                |
| ErrManyTx                     | Acount Has Too Many Txs                          | 同账户拥有过多交易                        |
| ErrDupTx                      | Duplicated Tx                                    | 重复交易                                  |
| ErrMemFull                    | Mempool Is Full                                  | Mempool已满                               |
| ErrHashNotExist               | Hash Not Exist                                   | hash不存在                                |
| ErrHeightNotExist             | Height Not Exist                                 | 对应高度的区块不存在                      |
| ErrTxNotExist                 | Tx Not Exist                                     | 交易不存在                                |
| ErrAddrNotExist               | Addr No tExist                                   | 地址不存在                                |
| ErrStartHeight                | Start Height error                               | 起始高度错误                              |
| ErrEndLessThanStartHeight     | End Height Less Than Start Height                | 起始高度大于结尾高度                      |
| ErrClientNotBindQueue         | Client Not Bind Queue                            | 客户端没有绑定到队列上                    |
| ErrContinueBack               | Continue Back                                    | 继续向前回退                              |
| ErrUnmarshal                  | Unmarshal error                                  | 解压错误                                  |
| ErrMarshal                    | Marshal error                                    | 压缩错误                                  |
| ErrBlockExist                 | Block Exist                                      | 区块已存在                                |
| ErrParentBlockNoExist         | Parent Block Not Exist                           | 父区块不存在                              |
| ErrBlockHeightNoMatch         | Block Height No Match                            | 区块高度不匹配                            |
| ErrParentTdNoExist            | Parent Td Not Exist                              | 父区块的总难度值不存在                    |
| ErrBlockHashNoMatch           | Block Hash No Match                              | 区块hash不匹配                            |
| ErrIsClosed                   | Is Closed                                        | 模块实例已关闭                            |
| ErrDecode                     | Decode error                                     | 解码错误                                  |
| ErrInputPara                  | Input Para error                                 | 入参错误                                  |
| ErrWalletIsLocked             | Wallet Is Locked                                 | 钱包已锁定                                |
| ErrSaveSeedFirst              | Save Seed First                                  | 请保存种子                                |
| ErrUnLockFirst                | UnLock First                                     | 请解锁钱包                                |
| ErrLabelHasUsed               | Label Has Used                                   | 标签已使用                                |
| ErrPrivkeyExist               | Privkey Exist                                    | 私钥已存在                                |
| ErrPrivkey                    | ErrPrivkey error                                 | 私钥错误                                  |
| ErrInsufficientBalance        | Insufficient Balance                             | 余额不足                                  |
| ErrVerifyOldpasswdFail        | Verify Old passwd Fail                           | 密码检测不过                              |
| ErrInputPassword              | Input Password                                   | 输入密码错误                              |
| ErrSeedlang                   | Seed lang error                                  | 种子语言格式错误                          |
| ErrSeedNotExist               | Seed Not Exist                                   | 种子不存在                                |
| ErrSubPubKeyVerifyFail        | Sub PubKey Verify Fail                           | 子公钥校验错误                            |
| ErrLabelNotExist              | Label Not Exist                                  | 标签不存在                                |
| ErrAccountNotExist            | Account Not Exist                                | 账户不存在                                |
| ErrSeedExist                  | Seed Exist                                       | 种子已存在                                |
| ErrNotSupport                 | Not Support                                      | 类型不支持                                |
| ErrSeedWordNum                | Seed Words Num error                             | 种子个数错误，必须是15个单词或者汉字      |
| ErrOnlyTicketUnLocked         | Only Ticket UnLocked                             | 只解锁买票挖矿功能                        |
| ErrNewCrypto                  | New Crypto Error                                 | 新建加密算法错误                          |
| ErrFromHex                    | From Hex Error                                   | 解析十六进制私钥字符串错误                |
| ErrPrivKeyFromBytes           | PrivKey From Bytes                               | 创建私钥错误                              |
| ErrNewWalletFromSeed          | New Wallet From Seed                             | 通过种子创建钱包错误                      |
| ErrNewKeyPair                 | New Key Pair                                     | 创建私钥公钥对错误                        |
| ErrPrivkeyToPub               | Privkey To Pub                                   | 私钥生成公钥错误                          |
| ErrNoExecerInMavlKey          | No execer found by key                           | 根据key无法查到执行器                     |
| ErrMavlKeyNotStartWithMavl    | Key is not start with mavl                       | key不是以mavl开头                         |
| ErrQueryNotSupport            | Query Not Support                                | 查询不支持此方法                          |
| ErrMinerNotClosed             | Miner is not closed                              | 自动挖矿没有停止，无法关闭票              |
| ErrHashlockSendAddress        | Hashlock return address is wrong                 | 发向错误的地址                            |
| ErrRetrieveRepeatAddress      |                                                  |                                           |
| ErrRetrieveDefaultAddress     |                                                  |                                           |
| ErrRetrievePeriodLimit        | Less than retrieve period limit                  | 小于retrieve时限                          |
| ErrRetrieveAmountLimit        | Less than retrieve amount limit                  | 小于retrieve金额限制                      |
| ErrRetrieveTimeweightLimit    |                                                  |                                           |
| ErrRetrievePrepareAddress     |                                                  |                                           |
| ErrRetrievePerformAddress     |                                                  |                                           |
| ErrRetrieveCancelAddress      |                                                  |                                           |
| ErrRetrieveStatus             | Wrong retrieve status                            | 错误的retrieve状态标识符                  |
| ErrRetrieveRelateLimit        |                                                  |                                           |
| ErrRetrieveRelation           |                                                  |                                           |
| ErrRetrieveNoBalance          | No retrieve balance                              | 没有retrieve的金额                        |
| ErrLogType                    | Error Log Type                                   | 错误的日志类型                            |
| ErrInvalidParam               | Invalid parameter                                | 错误的参数                                |
| ErrTokenNameLen               | Token Name Length Too Long                       | token名字太长                             |
| ErrTokenSymbolLen             | Token Symbol Length Too Long                     | token符号太长                             |
| ErrTokenTotalOverflow         | Token Total Too Big or Nagetive                  | token 总数过大， 或是负的                 |
| ErrTokenSymbolUpper           | Token Symbol is not all upper char               | token symbol 需要全是大写字母             |
| ErrTokenIntroLen              | Token Tntroduction Length Too Long               | Token介绍太长                             |
| ErrTokenExist                 | Token Symbol exists                              | Token Symbol 已经存在                     |
| ErrTokenNotPrecreated         | Token is not Precreated                          | Token 还没有预创建                        |
| ErrTokenCreatedApprover       | Token Approver has no privalige                  | Token Approver 没有权限                   |
| ErrTokenRevoker               | Token Revoker is wrong                           | Token Revoker 错误 （需要创建者自己撤销） |
| ErrTokenCanotRevoked          | Token Cann’t Revoked                             | Token 不能撤销                            |
| ErrTokenOwner                 | Token Owner is wrong                             | Token Owner 错误                          |
| ErrTokenHavePrecreated        | Token Has Precreated                             | Token已经被预创建                         |
| ErrTokenBlacklist             | Token is in Blacklist                            | Token 在黑名单里                          |
| ErrTokenNotExist              | Token Not Exist                                  | Token 不存在                              |
| ErrTSellBalanceNotEnough      | Token Sell Balance Not Enough                    | 出售时 Token 不足                         |
| ErrTSellOrderNotExist         | Token SellOrder Not Exist                        | 卖单不存在                                |
| ErrTSellOrderNotStart         | Token SellOrder Not Start                        | 卖单还没开始卖                            |
| ErrTSellOrderNotEnough        | Token SellOrder Boardlot Not Enough              | 卖单剩余手数不足                          |
| ErrTSellOrderSoldout          | Token SellOrder Soldout                          | 卖单已经卖完了                            |
| ErrTSellOrderRevoked          | Token SellOrder Revoked                          | 卖单已经撤销了                            |
| ErrTSellOrderExpired          | Token SellOrder Expired                          | 卖单已经超时了                            |
| ErrTSellOrderRevoke           | Token SellOrder Revoke failed                    | 卖单撤销失败                              |
| ErrTSellNoSuchOrder           | Token SellOrder Not Exist                        | 卖单不存在                                |
| ErrTBuyOrderNotExist          | Token BuyOrder Not Exist                         | 买单不存在                                |
| ErrTBuyOrderNotEnough         | Token BuyOrder Boardlot Not Enough               | 买单剩余手数不足                          |
| ErrTBuyOrderSoldout           | Token BuyOrder Soldout                           | 买单已经成交                              |
| ErrTBuyOrderRevoked           | Token BuyOrder Revoked                           | 买单撤销了                                |
| ErrTBuyOrderRevoke            | Token BuyOrder Revoke failed                     | 买单 撤销失败                             |
| ErrTCntLessThanMinBoardlot    | Token TradeOrder Boardlot Less Than Min Boardlot | 交易手数小于最小手数                      |
| ErrBlockHeaderDifficulty      |                                                  |                                           |
| ErrNoTx                       | Tx Not Exist                                     | 交易不存在                                |
| ErrTicketClosed               | Ticket is closed                                 | 票已经被关闭                              |
| ErrEmptyMinerTx               | Empty miner transaction                          | 空挖矿交易                                |
| ErrMinerNotPermit             | Miner is not permit                              | 没有挖矿权限                              |
| ErrMinerAddr                  | Miner address is wrong                           | 错误的挖矿地址                            |
| ErrModify                     |                                                  |                                           |
| ErrFutureBlock                |                                                  |                                           |
| ErrHashNotFound               | Hash value is not found                          | 没有找到对应的hash值                      |
| ErrTxDup                      | Tx Not Duplicate                                 | 交易重复                                  |
| ErrNotSync                    | Node Not Sync                                    | 节点未完成同步                            |
| ErrSize                       |                                                  |                                           |
| ErrMinerTx                    |                                                  |                                           |
| ErrNotRollBack                |                                                  |                                           |
| ErrInsufficientTokenBal       |                                                  |                                           |
| ErrInsuffSellOrder            |                                                  |                                           |
| ErrNoPrivKeyOrAddr            |                                                  |                                           |
| ErrParentHash                 |                                                  |                                           |
| ErrNoPrivilege                | No Privilege                                     | 没权限                                    |
| ErrBadConfigKey               | Config Bad Key                                   | 配置 Key 不对                             |
| ErrBadConfigOp                | Config Bad operate                               | 配置操作不对                              |
| ErrBadConfigValue             | Config Bad Value                                 | 配置项的值不对                            |
| ErrPing                       |                                                  |                                           |
| ErrVersion                    | Version is wrong                                 | 版本号不对                                |
| ErrStreamPing                 |                                                  |                                           |
| ErrPeerStop                   | Peer node is stopped                             | 对端节点已经停止                          |

