Dastan-glitch
44fee1c874
bin/tau: update event_graph synced flag when we skip sync
2023-12-09 23:58:05 +03:00
aggstam
2edadbc214
darkirc: update event_graph synced flag when we were already on latest tip
2023-12-08 17:56:13 +02:00
aggstam
f1096838ac
darkirc: update event_graph synced flag when we skip sync
2023-12-08 14:37:19 +02:00
aggstam
c6fa3ba99b
event_graph: introduce layers to the DAG
...
Each event corresponds to a specific layer(height) in the dag, making identifying and preventing cycles way easier, as all parents must exist in previous layers. Additionally, propagation and sync gremlins have been eliminated, and proper validations added
2023-11-24 15:35:35 +02:00
parazyd
59d7ed09fc
contract/deployooor: Clippy lint
2023-11-24 12:16:34 +01:00
parazyd
69cfa99860
contract/deployooor: Validate webassembly binary and search for needed symbols
2023-11-24 12:13:51 +01:00
parazyd
7e0ffd41cd
net/settings: Use Settings::default() in SettingsOpt
...
This simplifies making default changes since now have to be done only once.
2023-11-24 11:18:47 +01:00
x
a61475b6a2
book/p2p: add a section on swarming. requires more research to flesh out
2023-11-24 09:43:48 +01:00
x
684759ca27
doc book: add utility tool for txs to contribute section
2023-11-24 09:18:16 +01:00
aggstam
f7197c7816
dec/dev/contribute: tasks assignment
2023-11-23 20:48:26 +02:00
aggstam
77357f8d59
Revert "[bin/darkfid2] handle results in sync_task"
...
This reverts commit 7cf65d81af .
2023-11-23 20:33:35 +02:00
aggstam
6cb51623fe
Revert "[bin/darkfid2] async retry receive with timeout"
...
This reverts commit 00d00ae6bd .
2023-11-23 20:32:37 +02:00
ertosns
00d00ae6bd
[bin/darkfid2] async retry receive with timeout
2023-11-23 19:55:03 +02:00
ertosns
7cf65d81af
[bin/darkfid2] handle results in sync_task
2023-11-23 19:55:03 +02:00
y
c6d9e495e8
[runtime/vm_runtime] Clarify comment for call()
...
Make it clear that it is only possible to use a "ContractSection" method
when making a call to `call()`.
2023-11-23 10:24:21 -05:00
y
6cff3c3a12
[runtime/vm_runtime] Add even more documentation
2023-11-23 10:00:58 -05:00
y
4f29180d9e
[runtime/vm_runtime] Add more documentation
2023-11-22 14:05:01 -05:00
y
78196dbdd2
[runtime/merke] Document method merkle_add()
2023-11-22 11:43:41 -05:00
y
d4b8d45b74
[runtime/util] Document methods
2023-11-22 11:15:27 -05:00
y
fd643a8d08
[validator/validation] Improve comment wording
2023-11-22 10:48:44 -05:00
y
dd471e6b06
[validator/validation] Typo and comment formatting
2023-11-22 10:22:41 -05:00
aggstam
4d3984a611
validator: renamed testing_mode to pos_testing_mode
2023-11-22 00:26:22 +02:00
ertosns
6e830b386a
[src/runtime] add link to open issue unstable cursor_reamining
2023-11-22 00:25:04 +02:00
ertosns
13937b99b6
gitignore rusty-tags
2023-11-22 00:25:04 +02:00
ertosns
0d05fe6ebe
[src/runtime] rename db_handle:u32
2023-11-22 00:25:04 +02:00
y
1ffcaba5aa
[validator/verication] Revert additional changes
...
Commit a0636984e4 is reverted a previous
commit. There were a few relevant variables that were mistakenly changed
in a previous commit and no longer pass clippy. This commit makes clippy
happy.
2023-11-21 17:16:01 -05:00
y
d70dc7da65
Revert "[validator/verification] Reject massive txs"
...
This reverts commit a0636984e4 .
2023-11-21 17:13:22 -05:00
y
a0636984e4
[validator/verification] Reject massive txs
...
Add a check in verify_transaction() to reject transactions that have a
number of calls greater than the GAS_LIMIT defined in the runtime.
This prevents a potential denial-of-service vector where an attacker
could submit extremely large transactions that are guaranteed to revert
but still tie up system resources before the revert happens.
2023-11-21 16:24:17 -05:00
y
b4746761d2
[validator/verification] fix index out of bounds
2023-11-21 15:59:29 -05:00
y
cb5534090b
[darkirc/build] add license header
2023-11-21 15:34:05 -05:00
y
6461facaaa
[validator/verification] Fix typo in code comment
...
Change 'version 1' to 'version 2' where the Rust code matches
block_version == 2.
2023-11-21 15:32:18 -05:00
y
c46fc55144
[book] Add Tor-arti disclaimer
2023-11-21 15:08:38 -05:00
parazyd
3b84503365
darkirc: Add native Android cross-build instructions
2023-11-21 17:38:49 +01:00
y
a649d8f434
[runtime] Handle calls with no return values
...
This commit handles cases where the wasm functions had no return values.
- The code has been rewritten to avoid potential index out of bounds
errors when the `ret` variable could have had a length of zero
- Added new debug message to signal when a contract has returned no
values, but this is expected and desirable
- Add code comments
2023-11-21 11:32:26 -05:00
y
d3839ed6fc
[runtime] Prevent (unlikely) underflow
...
This commit explicitly handles a scenario where an underflow could
occur when calculating gas. In practice, this should not occur as the
WASM points budget should be synchronized with the contract's gas usage.
For this reason, the code should panic instead of underflow if this does
somehow happen.
2023-11-21 11:32:26 -05:00
y
889478f561
[runtime] Add clarifying documentation
2023-11-21 11:32:26 -05:00
ertosns
2e057cdca4
[src/serial] added vec, neg unit tests
2023-11-21 17:22:06 +02:00
parazyd
673b0ec6b1
Full Makefile project cleanup
2023-11-21 15:58:08 +01:00
parazyd
14b4c96105
doc: Add small note on working with native contracts
2023-11-21 15:58:08 +01:00
parazyd
2066bdbcd5
darkirc: Add .gitignore for Android build artifacts
2023-11-21 15:58:08 +01:00
parazyd
64e54f933e
tx: impl_p2p_message for Transaction when "net" feature is defined.
2023-11-21 15:58:08 +01:00
parazyd
a652375b08
contract: Clean up Makefiles
2023-11-21 15:58:05 +01:00
aggstam
7834a3f800
validator/pow: added fixed_difficulty greater than zero shield
2023-11-21 15:43:10 +02:00
aggstam
61d262880d
chore: clippy
2023-11-21 14:56:38 +02:00
aggstam
cb06356c46
validator/pow: introduced fixed difficulty for testing purposes
2023-11-21 14:41:56 +02:00
parazyd
75353cb0b5
doc: Add task for mining software
2023-11-21 12:24:23 +01:00
x
9aa1a61288
book: weechat usage (buffer layouts)
2023-11-21 11:39:14 +01:00
x
c6a7eb0dd9
book: move release cycle 4 months fwd
2023-11-21 10:50:27 +01:00
x
aa8d6408c8
book: areas of work
2023-11-21 10:47:04 +01:00
parazyd
e589fc0b2b
rpc: Simplify stream reading and move timeouts to outer scope.
2023-11-21 10:37:38 +01:00