Commit Graph

4924 Commits

Author SHA1 Message Date
parazyd
bbcdb359d2 darkfid/wallet: Endpoint for arbitrary SQL queries on the wallet. 2022-11-16 20:34:41 +01:00
parazyd
10e8d8e5fe darkfid/wallet: Implement arbitrary wallet queries over JSON-RPC. 2022-11-16 20:34:41 +01:00
parazyd
f2bf300679 script: Remove obsolete scripts. 2022-11-16 20:34:41 +01:00
parazyd
a958ba0ea2 script: Remove SQL query scripts. 2022-11-16 20:34:41 +01:00
aggstam
0bd7d8a376 consensus: chopped Participants 2022-11-16 20:51:11 +02:00
mohab metwally
fd0474d8d5 update blockchain.md in book 2022-11-16 17:32:56 +02:00
mohab metwally
3d6a9e727c fix fullrange check failed verfication in less than gadget 2022-11-16 16:02:42 +02:00
parazyd
569b296c16 darkfid: Get compiling with most of RPC functionality disabled. 2022-11-16 14:28:06 +01:00
parazyd
8078633f5c node: Do not compile the module anymore. 2022-11-16 14:28:06 +01:00
parazyd
ce09ccfca7 consensus: wasm transaction verification.
The thing that needs fixing here is that upon verification we write to the
db. Instead, we should defer that and do it when a block containing the tx
is finalized.

Multiple solutions/options presented in code comments.
2022-11-16 14:28:06 +01:00
parazyd
3756b10946 consensus: Replace old Transaction type with new one. 2022-11-16 14:28:06 +01:00
parazyd
51e753ce4b sdk: Remove leftover Address impl 2022-11-16 14:28:06 +01:00
parazyd
54ec918c8e wallet: Export WalletDb and WalletPtr 2022-11-16 14:28:06 +01:00
parazyd
83d700e85e consensus: Code cleanups 2022-11-16 14:28:04 +01:00
parazyd
84caaf2c3a runtime: Add wasm bincode to WasmStore after successful deploy execution. 2022-11-16 14:26:37 +01:00
parazyd
337f80361d blockchain: Add WasmStore and rename ContractStore to ContractStateStore. 2022-11-16 14:26:37 +01:00
parazyd
05befe509b sdk: Remove address module. 2022-11-16 14:26:37 +01:00
parazyd
e622aac09e wallet: Abstract away walletdb, the extensions should be implemented with traits. 2022-11-16 14:26:37 +01:00
parazyd
ba0dccdafe consensus: Move constants into own module. 2022-11-16 14:26:37 +01:00
parazyd
99f08cc8f5 sql: Remove obsolete darkpulse schema. 2022-11-16 14:26:37 +01:00
parazyd
cc8a046242 sql: Remove obsolete cashier schemas. 2022-11-16 14:26:37 +01:00
parazyd
ff5d31ca3d consensus: Begin leadcoin API cleanup. 2022-11-16 14:26:37 +01:00
aggstam
87369b917b consensus: constant eta through epoch 2022-11-16 14:22:39 +02:00
lunar-mining
5ac3d9b501 book: correct naming on architecture/ tooling 2022-11-16 13:22:29 +01:00
lunar-mining
350ce7050a book: delete architecture/layers 2022-11-16 13:12:34 +01:00
parazyd
cea573071b tx2: Initial stub for contract transaction type. 2022-11-15 22:50:36 +01:00
parazyd
72f345e6de contrib: Add script for attaching missing license headers to .rs files. 2022-11-15 22:14:28 +01:00
parazyd
8b648874d5 zk/vm: Shorten From impls with a macro. 2022-11-15 21:16:39 +01:00
parazyd
371011959c contract/money: Add no-entrypoint feature needed for composing contracts. 2022-11-15 20:37:43 +01:00
parazyd
ef9c4d3c52 contract/money: Add note about ZKAS_TREE. 2022-11-15 20:10:53 +01:00
parazyd
a7271ff600 contract/money: Add spend_hook and user_data + doc. 2022-11-15 20:07:49 +01:00
parazyd
fe611fbbcd consensus: Deploy native money contract on startup. 2022-11-15 19:33:34 +01:00
aggstam
8a60502a2f consensus/metadata: added coin serial and new coin public inputs 2022-11-15 20:30:22 +02:00
parazyd
83a380b080 contract/money: Redeployment logic error handling in init. 2022-11-15 18:56:01 +01:00
parazyd
17e5d01b18 sdk/db: Constant error codes for db 2022-11-15 18:56:01 +01:00
aggstam
60c33e4734 consensus/state/epoch_changed(): update consensus.epoch on epoch change 2022-11-15 18:34:00 +02:00
parazyd
f46000ecbd dao2: cargo fmt 2022-11-15 17:27:05 +01:00
parazyd
16178af767 contract/money: Initial outline in src/contract/money. 2022-11-15 17:26:20 +01:00
parazyd
9c0a0e1c10 runtime: Add db.contains_key functionality. 2022-11-15 17:10:54 +01:00
aggstam
1479b2cb62 consensus/state: updated finalization logic
Leader extends their longest fork chain. Finalization: when obverving extension 3 times, if no other fork exists at same or greater height(length) finalize all proposals up to the last one. Rest fork chains not starting by last finalized block are getting chopped.
2022-11-14 20:55:42 +02: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
mohab metwally
33e6d260f9 fix blockchain.md 2022-11-14 19:17:19 +02:00
TG × ⊙
7c06a2e32e nix flake: add dashu hash 2022-11-13 09:35:36 +00:00
spital
abb1262f38 Bump up rust version to 1.65 in Dockerfiles and fix typos, builds passed 2022-11-13 09:35:20 +00:00
parazyd
9f66dc36ae example/less_than: Fix simple issue. 2022-11-10 11:21:33 +01:00
ghassmo
acd16ee999 script/research/event_graph: a little change in the implementation 2022-11-10 10:21:28 +04:00
aggstam
5f072d1c7f p2p/settings: rustdoc added 2022-11-08 15:55:35 +02:00
x
5d9c2e0082 dao2: add lil todo note for self 2022-11-08 13:24:08 +00:00
x
f033857f23 dao2: dao now receives money 2022-11-08 13:22:20 +00:00
x
52561406f7 dao2: money correctly saving and updating its own state 2022-11-08 13:10:31 +00:00