Skip to content

Fix update propagation and routing issues #1609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1b25d37
wip: eventual consistency ping test
iduartgomez May 11, 2025
7b998d1
Add test for subscription propagation in partial networks
netsirius May 14, 2025
da1925a
Fmt conde and add build and compile utilities for WASM contracts
netsirius May 17, 2025
ec5e6ff
Refactor node startup to support multiple gateway/regular nodes
netsirius May 17, 2025
28e4ec7
Refactor test to support multiple gateway and regular nodes
netsirius May 23, 2025
598942c
Cache contracts locally before network propagation
netsirius May 24, 2025
bd3faf2
Fix contract handling logic
netsirius May 26, 2025
176e600
Add delay for put propagation and simplify WASM file handling
netsirius May 26, 2025
8d3def4
format
sanity May 29, 2025
b9c8ce8
Fix partially connected network test and resolve dependency issues (#…
sanity May 31, 2025
69e0ef1
Update crates/core/src/operations/put.rs
sanity May 31, 2025
e276176
fix: resolve fdev test failures by using workspace target directory
sanity May 31, 2025
b928f78
fix: format code
sanity May 31, 2025
2769302
fix: resolve CARGO_TARGET_DIR test failures
sanity May 31, 2025
6d94a6c
fix: format code
sanity May 31, 2025
0895894
refactor: consolidate workspace target directory logic
sanity May 31, 2025
089a7ff
fix: format code
sanity May 31, 2025
d5ad29f
update test logic
netsirius May 31, 2025
f606bec
feat: implement backtracking search for GET operations
sanity May 31, 2025
4652937
fix: resolve clippy warnings in get operation
sanity May 31, 2025
8973c57
fix: suppress false positive unused_assignments warning
sanity May 31, 2025
db0063d
fix: remove broken test file
sanity May 31, 2025
ed5e910
fix: add retry logic and improve port handling in ping test
sanity May 31, 2025
046cb69
fix: revert socket keeping to avoid address in use error
sanity May 31, 2025
81a99d9
fix: make ping tests more robust against timing failures
sanity May 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- contract states are commutative monoids, they can be "merged" in any order to arrive at the same result. This may reduce some potential race conditions.
58 changes: 8 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ tracing-subscriber = "0.3"
wasmer = "5.0.4"
wasmer-compiler-singlepass = "5.0.4"

# freenet-stdlib = { path = "./stdlib/rust/" }
freenet-stdlib = { version = "0.1.5" }
freenet-stdlib = { path = "./stdlib/rust/" }
# freenet-stdlib = { version = "0.1.5" }

[profile.dev.package."*"]
opt-level = 3
Expand Down
2 changes: 1 addition & 1 deletion apps/freenet-email-app/web/container/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl ContractInterface for Contract {
) -> Result<ValidateResult, ContractError> {
Ok(ValidateResult::Valid)
}

fn update_state(
_parameters: Parameters<'static>,
state: State<'static>,
Expand Down
8 changes: 4 additions & 4 deletions apps/freenet-email-app/web/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,17 +697,17 @@ fn open_message(cx: Scope<Message>) -> Element {
onclick: move |_| {
menu_selection.write().at_inbox_list();
},
i { class: "fa-sharp fa-solid fa-arrow-left", aria_label: "Back to Inbox", style: "color:#4a4a4a" },
i { class: "fa-sharp fa-solid fa-arrow-left", aria_label: "Back to Inbox", style: "color:#4a4a4a" },
}
}
div { class: "column is-four-fifths", h2 { "{email.title}" } }
div {
class: "column",
class: "column",
a {
class: "icon is-small",
class: "icon is-small",
// onclick: delete,
onclick: move |_| {},
i { class: "fa-sharp fa-solid fa-trash", aria_label: "Delete", style: "color:#4a4a4a" }
i { class: "fa-sharp fa-solid fa-trash", aria_label: "Delete", style: "color:#4a4a4a" }
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/freenet-email-app/web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn main() {
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- CUSTOM HEAD -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div id="freenet-email-main" class="container"></div>
Expand Down
52 changes: 5 additions & 47 deletions apps/freenet-ping/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apps/freenet-ping/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ humantime = "2.2.0"

[dev-dependencies]
freenet = { path = "../../../crates/core" }
socket2 = { version = "0.5", features = ["all"] }
testresult = { workspace = true }

[lib]
Expand Down
Loading
Loading