Commit Graph

206 Commits

Author SHA1 Message Date
aggstam
ec97e969c8 sdk: renamed SlotCheckpoint to Slot 2023-06-24 18:18:08 +03:00
aggstam
0afaf50d65 contract/test-harness: integrate new validator 2023-06-23 16:12:14 +03:00
aggstam
dd3d6a15e7 src/validator: set foundation for validator rewrite 2023-06-23 12:49:09 +03:00
parazyd
bc9b25bf1f error: Correct error string for wasm failed exit 2023-05-24 13:13:25 +02:00
parazyd
0cbaa2bcac dht: Stub protocols for metadata request-reply. 2023-05-12 21:52:27 +02:00
parazyd
293f74b301 dht: WIP implementation of filesystem-based DHT 2023-05-12 11:26:19 +02:00
aggstam
9214522a79 consensus/validator.rs: verify_transactions refactor and erroneous txs handling
Tests pass, still need to be tested in live conditions of node running
2023-03-17 23:59:19 +02:00
aggstam
7d3090f1ed runtime: Make all the writes atomic in a transaction over all trees 2023-03-09 19:59:46 +02:00
police
e4cb9aca8d update dashu new 0.3 api from main repo 2023-02-27 02:05:03 +02:00
aggstam
2ac20a6f39 contract: minor fixes
dao contract needs to be updated with the new money API
2023-02-25 14:20:29 +01:00
aggstam
3f6fc0d7af consensus: simplyfied total stake calculation and removed slot offset logic 2023-01-15 17:47:11 +02:00
parazyd
4c4132ce7e consensus/types: Wrap Float10 into our own struct for some code simplification. 2023-01-04 15:15:20 +01:00
parazyd
71cd3064d6 Update license year. 2022-12-28 13:06:00 +01:00
aggstam
f2da17ea1e consensus: verify proposer eligibility via coin age 2022-12-18 02:02:33 +02:00
aggstam
1bfef5dce3 consensus: ignore proposals with transactions exceeding cap 2022-12-06 22:34:38 +02:00
aggstam
b0bdc6b633 consensus: proposal eta and sigmas validation against checkpoints impl 2022-11-29 21:30:32 +02:00
aggstam
67160dc83c consensus: slot checkpoints logic added 2022-11-29 17:50:32 +02:00
parazyd
1d7866f688 Update crate dependencies. 2022-11-29 13:54:05 +01:00
aggstam
8fc779782f consensus: renamed block Metadata to LeadInfo 2022-11-25 18:22:30 +02:00
mohab metwally
6c27aae820 [consensus/state] verify eta/mu public values 2022-11-25 16:26:35 +02:00
parazyd
bdf67b41d1 drk: Add stub for block subscription. 2022-11-25 15:24:42 +01:00
aggstam
0bbe9f5588 consensus: ignore proposals after finalization check have been triggered for current slot 2022-11-25 16:20:06 +02:00
parazyd
877c0bb2d5 faucetd: Code cleanup. 2022-11-25 10:35:59 +01:00
aggstam
d6aa0d32ad consensus: overall empty slots calculation along with slots offset logic 2022-11-24 15:16:21 +02:00
mohab metwally
4f45b5cae3 [consensus/state] dynamic f implemented 2022-11-23 18:15:17 +02:00
mohab metwally
8167f81e95 [consensus/stx] verify stx 2022-11-21 14:09:29 +02:00
mohab metwally
2c7b54c702 [consensus/tx] transfer tx fixed 2022-11-20 17:48:37 +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
fec2304dd8 contract/money: Implement transaction builder. 2022-11-17 20:29:38 +01:00
parazyd
337f80361d blockchain: Add WasmStore and rename ContractStore to ContractStateStore. 2022-11-16 14:26:37 +01:00
parazyd
cea573071b tx2: Initial stub for contract transaction type. 2022-11-15 22:50:36 +01:00
aggstam
7bcc75b65e consensus/BlockProposal: added header as part of struct
This was done so we can execute faster validations, as previously we were using proposal.block.header.headerhash() each time, which serialized the header and produced a blake3 hash.
2022-11-14 20:01:08 +02:00
parazyd
d7ee8f3e0c Update calls throughout repository for latest darkfi-sdk changes. 2022-11-07 01:42:39 +01:00
x
1c9ff6fdba wasm: fix error codes situation so we get contract errors from inside wasm 2022-11-05 18:12:59 +00:00
parazyd
8be771af04 blockchain: Add skeleton for ContractStore. 2022-11-04 12:00:46 +01:00
x
66198e60a6 begin to add full darkfi smart contract functionality 2022-11-03 21:04:56 +00:00
x
b4a0b70cbf remove .map_err(), use From<> instead 2022-11-03 08:46:06 +01:00
x
a0c61641cf general cleanup and re-enabling of earlier disabled features. 2022-11-03 08:46:05 +01:00
aggstam
ebba655747 p2p: random_channel() to exlude seeds, consensus: minor proposal fixes, fmt 2022-11-01 16:37:46 +02:00
parazyd
8ae84ad7f9 Add license header to source files. 2022-10-31 18:16:13 +01:00
aggstam
1f6fe0cf26 consensus: fmt 2022-10-30 03:12:36 +03:00
aggstam
3c28dbcd63 consensus: minor fixes, error codes added 2022-10-30 03:11:35 +03:00
Luther Blissett
afcccefac9 crypto/note: Use audited chacha20poly1305 crate for note encryption. 2022-10-26 16:13:12 +02:00
Luther Blissett
62d1f06c1f Update imports for type migrations. 2022-10-17 00:34:34 +02:00
Luther Blissett
2b587bc14a Migrate lib to smol instead of explicit async deps.
Internally they're the same, smol exports them.
2022-10-14 18:43:26 +02:00
aggstam
c4227d9e03 stakeholder: conflict resolved 2022-10-14 18:44:26 +03:00
aggstam
4b9ae20fa3 error: WalletInsufficientBalance error code added 2022-10-14 18:42:11 +03:00
Luther Blissett
e7bc898923 darkwikid: main.rs improvements, and cleanups.
* Use dryoc for crypto_secretbox instead of public-key encryption.

* Detach raft task to background (this needs a good rework, current
  design is suboptimal).

* Remove ctrlc and add signal-hook to handle signals

* Upon SIGHUP, reload workspace secrets from the TOML config file.
2022-10-07 00:50:40 +02:00
Luther Blissett
5f56936668 rpc/websockets: Port to rustls. 2022-09-24 16:02:19 +02:00
Luther Blissett
0e5502f5d5 Move serialization library into its own submodule. 2022-09-24 16:02:19 +02:00