Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Introducing roles! #36

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9abbd0e
Changed frn generation function, implemented cert number
damirka Apr 16, 2019
2b80d62
Added LevelDB scratch for future development
damirka Apr 17, 2019
bef8678
Removed chaindata component
damirka Apr 17, 2019
20e2a12
Removed core/pool, replaced it with core/db
damirka Apr 17, 2019
1fe3950
Built class-architecture in core/db
damirka Apr 18, 2019
e941da6
Merge branch 'delegates' into leveldb-integration
damirka Apr 18, 2019
908ea9a
Improved lib/genesis to support multi-role records
damirka Apr 19, 2019
8893d6b
Improved lib/genesis to support multi-role records (#35)
damirka Apr 19, 2019
8f2e137
Merge branch 'leveldb-integration' into role-picking
damirka Apr 19, 2019
aababd1
Changed clients to roles
damirka Apr 22, 2019
f453cac
Merge branch 'master' into role-picking
damirka Apr 22, 2019
62530df
Temporarily disabled bank, added isProducer check
damirka Apr 22, 2019
41fd023
Added account record check in state
damirka Apr 22, 2019
a01ff9a
Removed producers listing in runner
damirka Apr 22, 2019
a42f39d
Question everything, replaced getHexAddress with getter
damirka Apr 22, 2019
c8839a5
Removed merge conflict in tests
damirka Apr 22, 2019
e9974b0
Improved waiter to allow more options to listen
damirka Apr 24, 2019
3c9abaa
Reorganized state-parsing logic
damirka Apr 30, 2019
d3694eb
Improved block-state, now state() returns instance
damirka May 1, 2019
f4a55e9
Added choosing block producer! Hooray!
damirka May 1, 2019
d1a0e55
Added publicKeyToAddress function in Account
damirka May 2, 2019
f5c85d7
Added sync mechanics, fixed numDelegates issue
damirka May 6, 2019
cdd39a2
Added internal NEW_BLOCK_RECEIVED event
damirka May 6, 2019
314c2a8
Optimized block-producer code, chain extraction
damirka May 6, 2019
5e21967
Fixed waiter.waitForCond - now works as expected
damirka May 7, 2019
602e188
Shortened delegate role, improved block producer
damirka May 7, 2019
37752e6
Fixed issue with no certificates block producers
damirka May 7, 2019
4bab871
Fixed 10nth block issue with leveldb
damirka May 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bp.js → _bp.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ require('services/observer');

const block = producer.produceBlock(parentBlock, transactions);

await chaindata.add(block);
await chaindata.add(block.number, block);
await streamBlock(block);

console.log('NEW BLOCK', block.number, block.hash);

// transport.send(events.NEW_BLOCK, block);

return wait(TIMEOUT).then(newBlock);
Expand Down
151 changes: 0 additions & 151 deletions clients/block-producer.js

This file was deleted.

Loading