blockchain's Introduction
blockchain's People
blockchain's Issues
23/100
Running 27 tests. ###################### processBlock() tests: ###################### Test 1: Process a block with no transactions ==> passed Test 2: Process a block with a single valid transaction ==> FAILED Test 3: Process a block with many valid transactions ==> FAILED Test 4: Process a block with some double spends ==> passed Test 5: Process a new genesis block ==> passed Test 6: Process a block with an invalid prevBlockHash ==> FAILED Test 7: Process blocks with different sorts of invalid transactions ==> passed Test 8: Process multiple blocks directly on top of the genesis block ==> FAILED Test 9: Process a block containing a transaction that claims a UTXO already claimed by a transaction in its parent ==> FAILED Test 10: Process a block containing a transaction that claims a UTXO not on its branch ==> FAILED Test 11: Process a block containing a transaction that claims a UTXO from earlier in its branch that has not yet been claimed ==> FAILED Test 12: Process a linear chain of blocks ==> FAILED Test 13: Process a linear chain of blocks of length CUT_OFF_AGE and then a block on top of the genesis block ==> FAILED Test 14: Process a linear chain of blocks of length CUT_OFF_AGE + 1 and then a block on top of the genesis block ==> FAILED ###################### createBlock() tests: ###################### Test 15: Create a block when no transactions have been processed ==> passed Test 16: Create a block after a single valid transaction has been processed ==> FAILED Test 17: Create a block after a valid transaction has been processed, then create a second block ==> FAILED Test 18: Create a block after a valid transaction has been processed that is already in a block in the longest valid branch ==> FAILED Test 19: Create a block after a valid transaction has been processed that uses a UTXO already claimed by a transaction in the longest valid branch ==> FAILED Test 20: Create a block after a valid transaction has been processed that is not a double spend on the longest valid branch and has not yet been included in any other block ==> FAILED Test 21: Create a block after only invalid transactions have been processed ==> passed ###################### Combination tests: ###################### Test 22: Process a transaction, create a block, process a transaction, create a block, ... ==> FAILED Test 23: Process a transaction, create a block, then process a block on top of that block with a transaction claiming a UTXO from that transaction ==> FAILED Test 24: Process a transaction, create a block, then process a block on top of the genesis block with a transaction claiming a UTXO from that transaction ==> FAILED Test 25: Process multiple blocks directly on top of the genesis block, then create a block ==> FAILED Test 26: Construct two branches of approximately equal size, ensuring that blocks are always created on the proper branch ==> FAILED Test 27: Similar to previous test, but then try to process blocks whose parents are at height < maxHeight - CUT_OFF_AGE ==> FAILED
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.