pyquarkchain
pyquarkchain copied to clipboard
Python implementation of QuarkChain
...and present in block explorer, something like [this](https://etherscan.io/tx/0xbb6bf9175984de45cfefb06fd293193284fb14928c25fae16e01e336231f5984#internal) in etherscan
1: https://github.com/QuarkChain/pyquarkchain/blob/788672319a275013cd5d2ca4ebb1d27de575e4b8/quarkchain/cluster/master.py#L1163 need check? if one shard have not been created? 2: https://github.com/QuarkChain/pyquarkchain/blob/788672319a275013cd5d2ca4ebb1d27de575e4b8/quarkchain/cluster/jsonrpc.py#L568 if one shard have not been created? return shards which have be created?
Make sure if we change the code, the code can recognize local db, i.e., we don't break the existing consensus. A couple of checks: - Check every root block -...
needed when we actually enable multiple native tokens
在shard.py中,注意到handle_new_minor_block_header_list_command函数下会触发synchronizer ``` Logger.info( "[{}] received new tip with height {}".format( m_header.branch.to_str(), m_header.height ) ) self.shard.synchronizer.add_task(m_header, self) ``` 而synchronizer启动后节点将拒收新的区块 ``` async def handle_new_block(self, block): if self.synchronizer.running: # TODO optional: queue the...
geth has it, parity has it, py-evm does not have it (yet) we want it peer reputation should be stateful, and limited to local cluster, ie. we should not convey...
It is possible that multiple blocks are committing in flight, and when the cluster shutdown, we should recover all of them: - sychronizer - local miner
without setting `ulimit -Sn 10000` pytest will fail with lots of "too many open files" error looks originated from test_cluster.py, need to investigate