Skip to content

Commit

Permalink
Create network.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 21, 2024
1 parent 6ef9dad commit dc29d8b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions core/sidra-chain/network.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// network.js
import * as Network from 'network';

class SidraChainNetwork {
constructor() {
this.nodes = [];
}

addNode(node) {
this.nodes.push(node);
}

broadcastTransaction(transaction) {
// Broadcast the transaction to all nodes in the network
}
}

export default SidraChainNetwork;

0 comments on commit dc29d8b

Please sign in to comment.