gxb-core
gxb-core copied to clipboard
GXChain Blockchain implementation
有2种方式实现: 1. 放witness_node实现,统计每个智能合约、每个帐户占用的RAM情况,并提供DB API提供查询。(不建议) 2. 使用create_snapshot DB API定期dump出内存快照,然后反序列化智能合约的持久化存储表,统计每个合约、每个帐户占用的RAM情况。(推荐)
log: ``` 2019-01-29T00:40:07 th_a:invoke get_item get_item ] Couldn't find block 00dbdc3b0c85051ee00b37184000000000000000 -- corresponding ID in our chain is 00dbdc3b0c85051ee00b37185f8a62d54a4b191f application.cpp:643 ``` refer to: https://github.com/steemit/steem/issues/1524
偶尔会出现,交易在数分钟之后未被打包进区块,到达过期时间被清除。标记一下,需要进一步定位原因
100% crash. file: libraries/wasm-jit/Source/WASM/WASMSerialization.cpp line: 384 OutputStream::capacity() always returns SIZE_MAX, so std::vector::resize(SIZE_MAX) always leads to crash. Please comment it out. Thanks. void serialize(OutputStream& stream,UserSection& userSection) { userSection.data.resize( sectionStream.capacity() ? sectionStream.capacity()...
Chain selection options: ``` -testnet Use the testnet chain -private Use the local private chain ```
add the following api to support contract stealth transaction: 1. verify_commitment 2. verify_range 3. verify_balance
support parallel processing to make better use of multi-core
关于节点丢块
目前公信链应该是 每小时 40分 的时候 进行投票统计,该操作会 造成 刚好该时间点出块的节点 丢块~ ``` 2019-01-09T04:39:57 th_a:invoke handle_block handle_block ] Got block: #16210180 time: 2019-01-09T04:39:57 transaction(s): 3 latency: 98 ms from: laomao-bp irreversible: 16210160 (-20) application.cpp:497...