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
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
97445fca25
blockchain: cleanup
2023-06-28 18:29:46 +03:00
aggstam
800adf21d9
blockchain/contract_store: added missing functions so transaction verification now operates purelly over an overlay
2023-06-28 16:04:01 +03:00
aggstam
feabf5a67a
blockchain: rewrite completed
...
Attention: this commit breaks darkfid/faucetd network functionalities, so nodes can't sync or participate in the protocol. Wait for their rewrite(TM)
2023-06-28 14:42:14 +03:00
aggstam
ec97e969c8
sdk: renamed SlotCheckpoint to Slot
2023-06-24 18:18:08 +03:00
aggstam
7deaab24e1
src: moved SlotCheckpoint to sdk so it can be used by contracts
2023-06-24 15:59:45 +03:00
aggstam
6ffa0974d5
src/validator: added verify_txs() and receive_slot_checkpoint()
...
sled-overlay was also updated to v0.0.5
2023-06-23 14:07:33 +03:00
parazyd
a2ddbcd4f8
contract: WIP implementation of generic test harness for native contracts.
2023-06-14 02:32:56 +02:00
aggstam
2b8cfb958a
contract/consensus: use second to last proposal/block hash in vrf input
2023-06-08 13:42:35 +03:00
aggstam
dd3820b971
chore: random clippy
2023-05-11 00:26:31 +03:00
aggstam
96a834eef5
src/contract/consensus: constrain slot lottery parameters
2023-05-04 21:11:38 +03:00
parazyd
b4cdbea08c
Update project dependencies.
2023-04-16 17:36:59 +02:00
aggstam
b50ff8bfc5
script/research/blockchain-explorer: display blockchain statistis funcionality added
2023-04-10 16:54:47 +03:00
aggstam
8178ac5071
blockchain/tx_store: use a new tree to keep pending transactions order
2023-03-22 01:01:04 +02:00
aggstam
9a74979141
WIP runtime: use an overlay over Blockchain
...
This allows us to use a sled-overlay over the original Blockchain sled db, so we can validate transactions execution without actually writting to it. Tests pass, but its far from ready. Cleaning, some todos and erroneous txs handling still missing.
2023-03-16 02:42:10 +02:00
aggstam
e06b6fa1df
consensus: moved pending txs from memory a distinct sled store
2023-03-07 23:14:09 +02:00
parazyd
4efb0ecf8c
lib: Apply linter suggestions.
2023-03-07 12:29:47 +01:00
parazyd
43f89dbfc7
consensus: Remove erroneus tx logic.
2023-03-06 20:10:01 +01:00
parazyd
8f7affff37
blockchain: Implement abstraction for fetching zkas bincode and vks.
2023-03-06 18:33:53 +01:00
parazyd
3b83197466
blockchain/contract_store: Add informational comment
2023-03-06 18:33:52 +01:00
parazyd
b30843c12c
runtime/db: Move the section restriction to the top of functions.
2023-02-25 14:20:29 +01:00
x
89736f3f86
add command to simulate tx and show erroneous state for fetch-tx
2023-02-18 15:23:54 +01:00
aggstam
4f3105d71d
blockchain/tx_store: use empty slice as value in erroneous_txs sled
2023-02-10 21:49:05 +02:00
aggstam
b0d24ef776
darkfid: erroneous txs handling
...
Darkfid will not apply erroneous txs state transitions and keep them in a separate sled tree. drk to filtre these txs to report correct balances/coins
2023-02-10 20:59:03 +02:00
aggstam
56b5a0758e
consensus: use last blockhash for eta instead of leadproof hash
2023-01-26 19:36:04 +02:00
aggstam
1645f3f27d
blockchain: renamed stores
2023-01-18 19:26:16 +02:00
aggstam
3f6fc0d7af
consensus: simplyfied total stake calculation and removed slot offset logic
2023-01-15 17:47:11 +02:00
x
155e7473a4
fix various warnings and general cleanup
2023-01-05 11:50:05 +01:00
x
5702976798
cleanup logging project wide
2023-01-02 14:47:55 +01:00
parazyd
71cd3064d6
Update license year.
2022-12-28 13:06:00 +01:00
aggstam
1af30e6975
consensus/consensus_sync: fixed stupid check
2022-12-18 21:07:42 +02:00
parazyd
9acfed6402
Clippy lints.
2022-12-14 12:30:27 +01:00
parazyd
905586a638
cargo fix
2022-12-07 12:53:52 +01:00
aggstam
0fee6b319c
consensus: broadcasting finalized slot checkpoints impl added, minor fixes
2022-12-01 20:37:53 +02:00
aggstam
67160dc83c
consensus: slot checkpoints logic added
2022-11-29 17:50:32 +02:00
aggstam
4d819bf716
consensus: slot checkpoints sync impl added as part of block_sync task
2022-11-29 16:49:45 +02:00
aggstam
0a030d7067
consensus: SlotCheckpoint struct created, blockchain: SlotCheckpointStore created
2022-11-29 16:02:01 +02:00
mohab metwally
9ac700774b
prune example
2022-11-29 12:04:11 +02:00
mohab metwally
85fa141b3d
[consensus] added some utilities, some tuning to pid
2022-11-28 05:37:19 +02:00
aggstam
931e1dd3cc
consensus: empty slots and offste calculations tunning
2022-11-27 15:57:38 +02:00
aggstam
8fc779782f
consensus: renamed block Metadata to LeadInfo
2022-11-25 18:22:30 +02:00
aggstam
d6aa0d32ad
consensus: overall empty slots calculation along with slots offset logic
2022-11-24 15:16:21 +02:00
aggstam
b2a4b672b8
blockchain: removed redundant code, fmt
2022-11-18 16:28:33 +02:00
aggstam
ee10a54648
consensus: major changes implemented
...
finalization syncing period implemented, finalization logic improvements, fork logic improvements, use blockhash instead of header hash as identifiers, remove redundant DELTA, minor fixes
2022-11-18 02:32:47 +02:00
parazyd
4886b0ec0b
Remove old obsolete tx module and replace with tx2.
2022-11-17 20:33:04 +01:00
parazyd
3756b10946
consensus: Replace old Transaction type with new one.
2022-11-16 14:28:06 +01:00