Skip to content

Commit

Permalink
Create block.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 21, 2024
1 parent 992a034 commit abf69df
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/sidra-chain/block.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Block {
constructor(transactions, previousBlockHash) {
this.transactions = transactions;
this.previousBlockHash = previousBlockHash;
}

validate() {
// Validate the block and ensure it meets the protocol's requirements
}

process() {
// Process the block and update the chain state
}
}

export default Block;

0 comments on commit abf69df

Please sign in to comment.