Commit Graph

70 Commits

Author SHA1 Message Date
skoupidi
c15facda1c validator: fixed not saving PoW module updates to db 2024-03-21 20:54:40 +02:00
skoupidi
269cffbd1c validator: purge unreferenced trees from sled when reseting forks 2024-03-21 15:37:25 +02:00
skoupidi
696bc213a0 validator: fixed stupid mistake 2024-03-19 18:02:05 +02:00
skoupidi
41c9bd28ba validator: updated sled-overlay version and use new diffs logic for finalization 2024-03-19 16:47:33 +02:00
parazyd
1297ff7b07 src/time: Implement and use {over,under}flow-safe API 2024-03-07 12:35:21 +01:00
skoupidi
7010aae22e validator: changed ranking logic 2024-03-04 21:05:53 +02:00
skoupidi
ed8e485575 validator: changed consensus finalization logic 2024-03-01 22:00:05 +02:00
skoupidi
d7495510dd darkfid: better locks handling and minor code improvements 2024-02-29 14:54:19 +02:00
skoupidi
ed96c06adb darkfid: ask peers if they are synced on sync task 2024-02-23 15:28:33 +02:00
skoupidi
6de4869bec darkfid: removed obselete protocol_block 2024-02-13 13:45:13 +02:00
parazyd
a516ec90e0 Fixup rebase artifacts 2024-02-09 14:15:47 +01:00
parazyd
8828438d8f contract/test-harness: Cleanup and addition of tx fees. 2024-02-09 13:57:14 +01:00
parazyd
00aefdded5 contract/money: Faucet cleanup
This removes clear inputs from Money::Transfer, and removes all faucet
references in the code.

Additionally, in src/validator/ we use the ValidatorConfig struct
directly, rather than using the ValidatorConfig::new() function.
2024-02-09 13:50:29 +01:00
skoupidi
2ce7f38880 validator: producer tx on last instead of first position in block txs vector and proper header Merkle tree validation 2024-02-08 15:44:41 +02:00
skoupidi
2dc6832656 validator: removed genesis tx total calculation | darkfid: use next block height for contracts deployment 2024-02-07 13:42:00 +02:00
skoupidi
7ac561fe67 util/time: TimeKeeper yeeted 2024-02-06 16:44:28 +02:00
skoupidi
f79bd2de18 sdk, blockchain, validator: removed slot stuff 2024-02-01 19:18:42 +02:00
skoupidi
3e15d146a3 validator/consensus: cleaned up slots logic 2024-02-01 13:31:29 +02:00
skoupidi
4c45c8d592 validator: cleaned up verification and validations methods and merged the two files 2024-01-31 20:21:08 +02:00
skoupidi
3355575721 runtime: replaced timekeeper with verifying block height directly 2024-01-31 14:22:51 +02:00
skoupidi
f64c4e5750 contract/*: renamed all slot references to block height 2024-01-30 21:27:46 +02:00
skoupidi
16103b84a7 Night of the living dead 2024-01-29 21:41:01 +02:00
parazyd
2305faefb4 validator/verification: Return an Error if there are failing txs in verifying sets 2024-01-23 12:35:01 +01:00
parazyd
f733f094e7 validator: Account for Schnorr signature verification for fees in txs 2024-01-19 12:59:02 +01:00
parazyd
0e6f51e895 chore: Update copyright year in license headers 2024-01-16 13:07:22 +01:00
aggstam
7c9b3549cf darkfid2: use minerd to mine blocks, validator: cleaned up threads info as its not longer required 2024-01-12 15:03:42 +02:00
parazyd
036afda345 validator: Configurable fee verification, incomplete
It's now only used in add_transactions(), but needs to be in other
places as well.
2024-01-10 16:34:05 +01:00
parazyd
fecab39d77 validator: Move DeployParamsV1 to darkfi-sdk 2024-01-09 13:27:48 +01:00
parazyd
2ad9183239 validator: Implement contract deployment handling upon tx verification 2024-01-09 13:18:53 +01:00
parazyd
4aa20d40f3 validator: Port serialization to async functions 2023-12-19 18:25:29 +01:00
parazyd
0231beba7f validator: Add placeholder for tx fee enforcement 2023-12-19 17:26:26 +01:00
aggstam
bb99e816f2 validator: removed RwLock over whole struct ptr and moved to inner stuff 2023-11-30 18:44:24 +02:00
aggstam
4d3984a611 validator: renamed testing_mode to pos_testing_mode 2023-11-22 00:26:22 +02:00
aggstam
cb06356c46 validator/pow: introduced fixed difficulty for testing purposes 2023-11-21 14:41:56 +02:00
aggstam
44482105c8 darkfid2: enchanched args configuration 2023-10-26 21:21:18 +03:00
aggstam
893ea4a52f validator/pow: store block difficulty info in sled 2023-10-13 19:40:18 +03:00
aggstam
594946044e validator/pow: TODOs cleanup 2023-10-13 16:48:13 +03:00
aggstam
8cff15a9b8 validator: handle proposals based on their version 2023-10-11 21:41:08 +03:00
aggstam
6ad2a19bac validator: validate blocks based on their version 2023-10-03 21:45:28 +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
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
a02e3475f6 lib: Remove async-std dependency. 2023-08-22 19:55:37 +02:00
aggstam
80ffd5afd6 validator/consensus: proposal generation implemented 2023-08-10 19:32:06 +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
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
0cc61ccaa9 validator/proto: BlockInfo protocol added 2023-07-21 19:20:50 +03:00