pyquarkchain icon indicating copy to clipboard operation
pyquarkchain copied to clipboard

Python implementation of QuarkChain

Results 49 pyquarkchain issues
Sort by recently updated
recently updated
newest added

FYI purpose, not going to merge at the moment

which is not supported right now (using hard-coded genesis token): https://github.com/QuarkChain/pyquarkchain/blob/c3a76bc0527387a606b87a87b0706b929d88c95b/quarkchain/cluster/shard_state.py#L94-L123 that's why even [this root block](http://testnet2.quarkchain.io/block/36614) has QTSLA token in coinbase (which comes from tx fee), the root block...

Currently, the logic requires the next root block observed, which is unnecessary.

enhancement

https://github.com/QuarkChain/pyquarkchain/blob/7fb8b7cbeeb40dbef13ac29fc1c0eb40885a9ada/quarkchain/cluster/shard_state.py#L436-L448 As referenced by the above code, __validate_tx() uses root_tip to determine whether the neighbor exists or not, which is wrong for run_block() case, where the root block observed by...

slaves should be able to directly connect peers instead of going through the proxy connection in master. specially, now master handles message encryption/decryption and has to perform on all shards...

enhancement
scalability

a lot of things can go wrong when establishing p2p connections: failed handshake, wrong version, mismatching serialization, we shall ensure all opened TCP sockets are closed properly

good first issue

One of the issues that QuarkChain team noticed during testnet 2.0 is incompatible network id issues when a new network is being started (while there are some clusters running the...

https://github.com/QuarkChain/pyquarkchain/blob/ed98f02fb253e606127d00b110554d5ba798489d/quarkchain/cluster/miner.py#L212 rootBlock还没广播给slave和插入到本地就去挖下一个root,势必导致下一个root大几率废块

``` class GetLogRequest(Serializable): FIELDS = [ ("branch", Branch), ("addresses", PrependedSizeListSerializer(4, Address)), ( "topics", PrependedSizeListSerializer( 4, PrependedSizeListSerializer(4, FixedSizeBytesSerializer(32)) ), ), ("start_block", uint64), ("end_block", uint64), ] ``` where `addresses` can use recipient...

enhancement