Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Constructor for blockchain

// In the Blockchain.js
function Blockchain() {
    this.chain = [];   //stores our blocks
    this.pendingTransactions = []; //this contains our pending transaction before create a new block

}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Constructor #blockchain
ADD COMMENT
Topic
Name
5+7 =