demo version
This commit is contained in:
parent
fbb282a801
commit
672d6daa8e
125 changed files with 17918 additions and 1481 deletions
|
@ -1,15 +0,0 @@
|
|||
const PropServer = require('./blockchain-prop');
|
||||
const Block = require('../blockchain/block');
|
||||
|
||||
const s1 = new PropServer('s1', false);
|
||||
const s2 = new PropServer('s2', false);
|
||||
const s3 = new PropServer('s3', false);
|
||||
|
||||
s1.start(9100, 'ws://127.0.0.1:9100', []);
|
||||
s2.start(9101, 'ws://127.0.0.1:9101', ['ws://127.0.0.1:9100']);
|
||||
s3.start(9102, 'ws://127.0.0.1:9102', ['ws://127.0.0.1:9101']);
|
||||
|
||||
const blocks = [Block.genesis()];
|
||||
blocks.push(Block.debugMine(blocks[blocks.length - 1], 'eh', [], [], [], [], []));
|
||||
|
||||
s3.updateBlocks(blocks);
|
Loading…
Add table
Add a link
Reference in a new issue