Memory does not match data
Error:”Memory does not match data” ,即“内存不匹配数据”重启时出错。
如果当你启动nodeos
时遇到了这个错误,例如St9exception: content of memory does not match data expected by executable
,尝试使用下列参数选项之一重新启动nodeos
(可以使用nodeos --help
获得这些参数选项的完整列表)。
Command Line Options for eosio::chain_plugin:
--fix-reversible-blocks recovers reversible block database if
that database is in a bad state
--force-all-checks do not skip any checks that can be
skipped while replaying irreversible
blocks
--replay-blockchain clear chain state database and replay
all blocks
--hard-replay-blockchain clear chain state database, recover as
many blocks as possible from the block
log, and then replay those blocks
--delete-all-blocks clear chain state database and block
log
Could not grow database file to requested size.
Error:”Could not grow database file to requested size.” 即“无法将数据库文件增长到请求的大小。”
用--shared-memory-size-mb 1024
来启动nodeos
。1 GB共享内存文件允许大约一百万个交易。
我运行/连接到什么版本的EOSIO?
如果可以使用默认值,那么cleos get info
将输出一个包含server_version
的字段的块。如果你的nodeos
没有使用默认值,那么你需要知道nodeos
的URL。在这种情况下,使用你的URL参数的nodeos
命令:
cleos --url http://localhost:8888 get info
只关注当前块的版本行:
cleos --url http://localhost:8888 get info | grep server_version
分享一个EOS智能合约与DApp开发入门教程,欢迎大家来学习互动:
本教程帮助你快速入门EOS区块链去中心化应用的开发,内容涵盖EOS工具链、账户与钱包、发行代币、智能合约开发与部署、使用代码与智能合约交互等核心知识点,最后综合运用React和EOS的各知识点完成一个便签DApp的开发。