-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-test.js
More file actions
28 lines (19 loc) · 745 Bytes
/
dev-test.js
File metadata and controls
28 lines (19 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// // file used to explore block class
// const Block = require('./blockchain/block');
// //creating a new instance
// // const block = new Block('foo','bar','zoo','bas');
// //testing the toString function
// // console.log(block.toString());
// //testing the genesis function
// // console.log(Block.genesis().toString());
// //testing the mineBlock function
// const fooBlock = Block.mineBlock(Block.genesis(),"foo");
// console.log(fooBlock.toString());
// const Blockchain = require('./blockchain');
// const blockchain = new Blockchain();
// for(let i=0;i<10;i++){
// console.log(blockchain.addBlock(`foo ${i}`).toString());
// }
const Wallet = require('./wallet');
const wallet = new Wallet();
console.log(wallet.toString());