Commit Graph

64 Commits

Author SHA1 Message Date
aggstam
6ad2a19bac validator: validate blocks based on their version 2023-10-03 21:45:28 +03:00
aggstam
030cbb48c9 validator/verification: validate producer signature using transaction public key 2023-10-03 16:25:29 +03:00
aggstam
b26106ffe7 validator/pow: stoppable mining 2023-09-28 16:50:18 +03:00
aggstam
10fbf5d963 validator: pow module added for mining 2023-09-20 23:32:33 +03:00
aggstam
e5081d55ce blockchain/Block: refactored in preparation for mining integration 2023-09-19 00:11:20 +03:00
aggstam
01fac53e39 validator: properly test producer txs 2023-09-15 00:51:37 +03:00
aggstam
ade055d3db validator/validation,verification: perform validations based on block version 2023-09-15 00:51:37 +03:00
aggstam
45d6ffea71 validator/verification: proper producer tx handling 2023-09-15 00:51:37 +03:00
aggstam
eca2c7e175 blockchain/Block: moved producer tx at last position of blocks' txs vec 2023-09-15 00:51:37 +03:00
aggstam
dba13ebef6 blockchain/Block: removed producer structure 2023-09-15 00:51:37 +03:00
aggstam
b8e612138d validator/blockchain: consolidate all blockchain structures validation at src/validator/validation.rs 2023-09-14 14:39:20 +03:00
aggstam
8d7a2bde7c validator: preperation cleanup for PoW blocks integration 2023-09-13 19:22:56 +03:00
parazyd
8f46f7b777 lib: Clean up library features. 2023-08-29 13:08:35 +02:00
parazyd
2d0e3b0d89 lib: Clean up imports 2023-08-24 15:29:16 +02:00
parazyd
98703d361a lib: Add necessary traits around for async serial. 2023-08-24 14:27:03 +02:00
y
ed53f896af chore: fix typos in comments and logs 2023-08-23 09:12:40 +00:00
greptile
970698f4a9 consensus: add unit test for bounds on f (#192)
* consensus: add unit test for bounds on f

Added test f_is_bounded to src/validator/consensus/pid.rs

Test by running:
cargo test --release --all-features f_is_bounded

* fix CI error (cargo fmt)

---------

Co-authored-by: y <y>
2023-08-23 09:12:13 +00:00
parazyd
a02e3475f6 lib: Remove async-std dependency. 2023-08-22 19:55:37 +02:00
aggstam
ff581982be validator/consensus: finalization check added 2023-08-10 19:58:17 +03:00
aggstam
80ffd5afd6 validator/consensus: proposal generation implemented 2023-08-10 19:32:06 +03:00
aggstam
67d5ed7d28 validator: current slot generation added 2023-08-04 18:42:05 +03:00
aggstam
490436b11e validator: check that eta is carried as slots progress 2023-08-03 19:11:18 +03:00
aggstam
df5f2a7568 blockchain/Slot: renamed previous.eta to last_eta 2023-08-03 18:13:01 +03:00
aggstam
e71264d376 darkfid2: moved p2p protos from validator to darkfid using wrapper structs for messages 2023-08-02 18:37:43 +03:00
aggstam
41c77f0706 validator:consensus: minor functions rename 2023-08-01 19:51:29 +03:00
aggstam
cc25514ed2 validator:consensus: proposal verification added 2023-08-01 19:45:50 +03:00
aggstam
77e5b65a80 validator: pending txs fork handling added 2023-08-01 14:36:43 +03:00
aggstam
9cd9d13456 chore: comment typos 2023-07-27 19:09:20 +03:00
aggstam
2a35e0af83 blockchain: overlay pointers handling 2023-07-27 18:42:41 +03:00
aggstam
4a73c46ebc darkfid2/validator: consensus p2p foundation laid out 2023-07-25 18:30:34 +03:00
aggstam
51910ba346 chore: updated sled-overlay package 2023-07-25 17:23:24 +03:00
aggstam
03ddfdfb3c darkfid2: node blocks sync implemented 2023-07-24 14:36:35 +03:00
aggstam
a1466e1520 darkfid2/tests: use P2P to pass blocks between nodes 2023-07-22 16:23:15 +03:00
aggstam
0cc61ccaa9 validator/proto: BlockInfo protocol added 2023-07-21 19:20:50 +03:00
aggstam
56130e1699 validator: improved log targets 2023-07-21 14:24:42 +03:00
aggstam
d9eed23013 blockchain: simplyfied Slot structure 2023-07-21 14:05:40 +03:00
aggstam
7c6a2b912c chore: minor cleanup 2023-07-20 03:11:12 +03:00
aggstam
73500a25b4 contracts/tests: made consensus coins deterministic, major cleanup in rest 2023-07-20 02:44:19 +03:00
aggstam
147022a903 darkfid2-validator: ProtocolTx created 2023-07-19 16:44:39 +03:00
aggstam
9f81e693ed darkfid2/rpc: basic tx methods added 2023-07-18 19:00:52 +03:00
aggstam
361e53af0c darkfid2/tests: use genesis stake and mint in genesis block 2023-07-12 22:03:29 +03:00
aggstam
dce1fb929d darkfid2: calculate genesis txs total and use that for genesis block validation 2023-07-12 20:23:31 +03:00
aggstam
5c5a6a2aca validator/verification: proper genesis block validation 2023-07-12 15:30:41 +03:00
aggstam
17415a3d21 validator: use new pid 2023-07-07 21:05:46 +03:00
aggstam
9712efdfb1 validator/consensus/pid: sigmas caclulation foundation 2023-07-07 16:43:48 +03:00
aggstam
0d00179abd darkfid2: further extend tests foundation | repo: fmt 2023-07-03 16:50:44 +03:00
aggstam
a3d04e0b46 bin/darkfid2: set foundation for implementing new darkfid 2023-07-03 14:35:56 +03:00
aggstam
bca71304f9 validator: full block validation added 2023-07-01 18:54:33 +03:00
aggstam
b122e4e19e blockchain: minor pointers cleanup
We don't want to introduce &BlockchainOverlayPtr in runtime, because we will end up with lifetime hells, and copying is cheap
2023-06-30 15:06:54 +03:00
aggstam
c77ed67df1 validator: decoupled verification functions so we can chain them using same overlay 2023-06-28 20:52:29 +03:00