We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block block1 = new Block(genesis.hash); addBlock(block1); Block block0 = new Block(block1.hash); addBlock(block0); Block block2 = new Block(block1.hash); addBlock(block2); Block block3 = new Block(block2.hash); isChainValid(); 第一个问题:验证有效性的时候,是不是应该在每个区块建立后就进行验证呢? 第二个问题:当前BlockChain是以ArrayList[Block]的形式,当检验的时候,如上设置了分支的形式就会报错,是不是这个设计不太对,与当前的比特币的设计思路不一样,是不是应该将List换为tree呢?
Block block1 = new Block(genesis.hash); addBlock(block1); Block block0 = new Block(block1.hash); addBlock(block0); Block block2 = new Block(block1.hash); addBlock(block2); Block block3 = new Block(block2.hash); isChainValid();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Block block1 = new Block(genesis.hash); addBlock(block1); Block block0 = new Block(block1.hash); addBlock(block0); Block block2 = new Block(block1.hash); addBlock(block2); Block block3 = new Block(block2.hash); isChainValid();
第一个问题:验证有效性的时候,是不是应该在每个区块建立后就进行验证呢?
第二个问题:当前BlockChain是以ArrayList[Block]的形式,当检验的时候,如上设置了分支的形式就会报错,是不是这个设计不太对,与当前的比特币的设计思路不一样,是不是应该将List换为tree呢?
The text was updated successfully, but these errors were encountered: