Xuefei Han
Xuefei Han
Currently, users cannot change a node's PeerId if a p2p key file is stored. It would be better to add a CLI parameter/subcommand to allow the user to reset the...
## Description Fixes pyrsia/pyrsia#1197 and pyrsia/pyrsia#1188 This PR implements the following: 1. Reset one blockchain message limit to 30MB 1. A blockchain message can contain up to 5 blocks 1....
The `pyrsia authorize` command still creates a new block on blockchain for existing authorized nodes
### Steps taken/Steps to reproduce 1. Set up nodeA as [build_from_source_docker.md](https://github.com/pyrsia/pyrsia/blob/main/docs/developers/build_from_source_docker.md). 2. Run `/target/debug/pyrsia authorize --peer 12D3KooWGXbQ4dnb97aKNczYMTRn9WMwYSNHSRXnftoCA6cTAfSb` twice Two new blocks are created on the blockchain. The debug information in...
### Steps taken/Steps to reproduce Something in [build_from_source_docker.md](https://github.com/pyrsia/pyrsia/blob/main/docs/developers/build_from_source_docker.md) looks outdated. In the Authorize-node-a-as-a-build-node section, the following looks outdated. ``` Enter host: localhost Enter port: 7889 Enter disk space to be...
For user convenience, it is better to automatically add the first Pyrsia node as an authorized node.
### Steps taken/Steps to reproduce The unit test code is as follows: ```rust #[cfg(test)] #[cfg(not(tarpaulin_include))] mod tests { use super::*; #[test] fn test_pyrsia_node_args_parse() -> Result { let args = PyrsiaNodeArgs::parse();...
To efficiently handle duplicate code on the blockchain, use generic types as parameters instead of concrete types.
If the blockchain is too large (greater than 100M or 1G), we need to implement another protocol to initialize the blockchain. Reference: https://btcinformation.org/en/developer-guide#blocks-first https://btcinformation.org/en/developer-guide#headers-first While testing this, I lowered the...
## Before tagging the release in github - [x] Check and make sure the version in Cargo.toml and rust.yml is correct in the main branch - [x] Run the [integration...
Refactor some events and related methods of blockchain_service to remove redundancy and make more sense. 1. Remove `PullBlocksFromPeer` event, it was confused with `HandlePullBlocks` event ```rust PullBlocksFromPeer { peer_id: PeerId,...