在 EOSIO 上做开发,用户可能会遇上一些报错信息。有时这些报错信息很不好被理解,导致我们经常在开发群里看到各种截图和问题。
为了帮助刚上手的开发者克服这些挑战,我们对一些最常见报错信息做了一个小总结。
请注意,一些钱包和其它的应用界面可能会对原消息格式做更改,让它更易懂。比如 nodeos
(EOSIO 的操作软件)的原输出可能会是这样的:
{"code": 500,"message": "Internal Service Error","error": {"code": 3080004,"name": "tx_cpu_usage_exceeded","what": "Transaction exceeded the current CPU usage limit imposed on the transaction","details": [{"message": "billed CPU time (2115 us) is greater than the maximum billable CPU time for the transaction (162 us)","file": "transaction_context.cpp","line_number": 553,"method": "validate_cpu_usage_to_bill"}]}
}
而你收到的报错信息可能是会变成:billed CPU time (2115 us) is greater than the maximum billable CPU time for the transaction (162 us)
译:需要的 CPU(2215 us)超出了交易允许的最大值
而在这篇文章中,我们会用后者这样更简洁的信息来进行讨论。
Transaction failed - billed CPU time (1342 us) is greater than the maximum billable CPU time for the transactions (71 us)
译:交易失败 - 需要的 CPU(1342 us)超出了交易允许的最大值 (71 us)
这个报错的意思是,在给这个交易提供
本文发布于:2024-02-04 22:33:52,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170717892760284.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |