2816 Commits

Author SHA1 Message Date
jonesmarvin8
77af662ac6
fix: reject public transactions with empty account_ids (#552)
Closes #513
2026-06-24 13:33:51 -04:00
Daniil Polyakov
066ffdd51a
Merge pull request #567 from logos-blockchain/arjentix/fix-ci-docker-build
fix(ci): fix publish images workflow
2026-06-24 18:10:09 +03:00
Pravdyvy
fb8cbac40e
Merge pull request #518 from logos-blockchain/Pravdyvy/ffi-mnemonic
feat(wallet-ffi)!: mnemonic-based updates
lez-core-v0.2.0
2026-06-24 17:11:08 +03:00
Pravdyvy
552503a42f fix(deny): deny fix 2026-06-24 13:14:50 +03:00
Pravdyvy
d8c50ceb59 Merge branch 'main' into Pravdyvy/ffi-mnemonic 2026-06-24 13:02:12 +03:00
Pravdyvy
078e579edd
Merge pull request #571 from logos-blockchain/fix/macos-metal-toolchain-xcrun
fix(nix): build risc0 Metal kernels on macOS by fixing xcrun env
2026-06-24 12:57:32 +03:00
Moudy
54497642f9
Merge pull request #553 from logos-blockchain/schouhy/add-vault-claim-ffi
add vault claim ffi
2026-06-24 11:57:16 +02:00
Pravdyvy
715dccf62a Merge branch 'main' into fix/macos-metal-toolchain-xcrun 2026-06-24 11:36:40 +03:00
Sergio Chouhy
47a94ac7e4 feat(wallet-ffi): add vault claim ffi 2026-06-24 10:35:31 +02:00
Moudy
ec11c2ab0b
Merge pull request #570 from logos-blockchain/fix/deny-rustsec-2026-0185
fix(deny): ignore RUSTSEC-2026-0185 (quinn-proto, transitive via libp2p)
2026-06-24 10:28:49 +02:00
moudyellaz
136acf5368 fix(deny): ignore RUSTSEC-2026-0185 (quinn-proto, transitive via libp2p) 2026-06-24 08:16:03 +00:00
r4bbit
4fc1a97db6
fix(nix): build risc0 Metal kernels on macOS by fixing xcrun env
risc0 compiles its Metal (GPU) prover kernels by invoking `xcrun metal` /
`xcrun metallib`. Under nix, the darwin stdenv exports DEVELOPER_DIR and
SDKROOT pointing at its own SDK, which makes xcrun look for the `metal`
tool in the wrong place and fail with:

    error: cannot execute tool 'metal' due to missing Metal Toolchain;
           use: xcodebuild -downloadComponent MetalToolchain

...even when a working Metal Toolchain is installed (the same call succeeds
in a clean environment where those vars are unset).

Wrap xcrun with a small shim, placed first in PATH, that clears
DEVELOPER_DIR/SDKROOT for `metal`/`metallib` invocations only — so they
resolve the system Xcode Metal Toolchain — while every other xcrun call
passes through with the nix environment intact. This makes wallet-ffi
build with real GPU prover kernels on macOS, with no --override-input
workaround needed downstream.

Note: on recent macOS the Metal Toolchain is a per-user component, so
`xcodebuild -downloadComponent MetalToolchain` must have been run by the
building user (and builds still require `--option sandbox false`).
2026-06-24 10:09:47 +02:00
erhant
fce8722d05
Merge pull request #568 from logos-blockchain/erhant/fix-indexer-configs
fix(indexer): update config files
2026-06-23 18:58:48 +03:00
Daniil Polyakov
27360cb7d6 fix(ci): fix publish images workflow v0.2.0-rc5 2026-06-23 18:28:36 +03:00
erhant
7f0714a79e fix(indexer): the latest docker fix updated bedrock ports, this small commit fixes those 2026-06-23 17:02:47 +03:00
erhant
a9df90c5b6
Merge pull request #547 from logos-blockchain/erhant/fix-indexer-ffi
refactor(indexer)!: query IndexerCore directly in the FFI; fix #538 / #540 / #544, drop `port`
2026-06-23 16:00:27 +03:00
erhant
c7336c3216 fix(indexer): tiny comment link fix [skip ci] 2026-06-23 15:57:33 +03:00
erhant
735235efa1 fix(indexer)!: address @Arjentix comments on IndexerStatus 2026-06-23 15:57:33 +03:00
erhant
2195937400 fix(indexer_ffi): use already FFI-safe Runtime 2026-06-23 15:57:33 +03:00
erhant
5d51e0b59c fix(indexer): use /var/lib/indexer_service volume path in Dockerfile
+ add `*` wildcard for rocksdb ignore
2026-06-23 15:57:33 +03:00
erhant
0bb7b30d63 fix: rm comments, add cpp_compat to cbindgen 2026-06-23 15:57:33 +03:00
erhant
c57bf16d15 feat: added status reporter for indexer (for UI) 2026-06-23 15:57:33 +03:00
erhant
c0fbaaf08e refactor: use channel id for rocksdb filename [skip ci] 2026-06-23 15:57:33 +03:00
erhant
1c1e80f646 feat(indexer)!: make storage location caller-driven, not config-driven
The indexer's storage location was the `home` field of IndexerConfig, used only to derive the RocksDB dir. Defaulting to "." meant it landed in the process CWD — fine for the standalone service, but wrong when the indexer runs embedded in a logos_host subprocess (RocksDB ended up in an arbitrary/unwritable dir). Storage location is an operational concern the host should own, not something baked into a user-editable config.

Remove `home` from IndexerConfig and pass the storage directory explicitly:

  - core: `IndexerCore::new(config, storage_dir)` derives `<storage_dir>/rocksdb`.
  - ffi: `start_indexer(runtime, config_path, storage_dir)`; null/empty storage_dir falls back to ".". Lets a host (e.g. a Logos module's instance persistence path) own where state lives.
  - service: `run_server(config, storage_dir, port)` + a `--data-dir` flag (default ".") on the binary, preserving current behaviour.
  - drop `home` from the committed indexer config JSONs and the test fixtures.

BREAKING CHANGE: `start_indexer` gains a `storage_dir` parameter and IndexerConfig no longer has a `home` field.
2026-06-23 15:57:33 +03:00
erhant
0c52ec9695 fix(indexer): stop FFI integration tests segfaulting on query_account
The indexer FFI test helper borrowed `ctx.runtime()` via `Runtime::from_borrowed` and then moved `ctx` (and its by-value `tokio::runtime::Runtime` field) into the tuple returned from `setup()`. That move relocates the runtime, leaving the raw pointer the indexer stored dangling. Sync queries never touch the runtime, so they passed; `query_account` is the only path that `block_on`s it, so it dereferenced freed stack memory → SIGSEGV (hence only the two `indexer_ffi_state_consistency*` tests crashed).

Pass a null runtime so the FFI creates and owns its own — the same lifetime path the production module uses (`start_indexer(nullptr, …)`) — instead of borrowing a runtime whose address isn't stable across the move.
2026-06-23 15:57:33 +03:00
erhant
f3134cde58 chore: fmt and lint 2026-06-23 15:57:33 +03:00
erhant
ea13ef10d8 refactor: drastically shorten (480s to 160s) the test time by adding block wait helper 2026-06-23 15:57:33 +03:00
erhant
0db82d2344 refactor: better runtime handling + logger lint fix 2026-06-23 15:57:33 +03:00
erhant
4a3fa1d4be refactor: logger now only enables for indexer crates + takes in a loglevel option 2026-06-23 15:57:33 +03:00
erhant
956dc6278a fix!(indexer_ffi): fix 3 existing issues, refactor the runtime handling, rm unused cbindgen.toml 2026-06-23 15:57:33 +03:00
Daniil Polyakov
70d33f5a16
Merge pull request #566 from logos-blockchain/arjentix/fix-docker-builds
fix(docker): fix dockerfiles to properly build images
2026-06-23 15:43:24 +03:00
Daniil Polyakov
a6d2241519 fix(docker): tweak some port numbers for better consistency 2026-06-23 15:24:03 +03:00
Daniil Polyakov
cd06f7c0f7 feat(docker): extract risc0 installation into a separate image 2026-06-23 15:24:03 +03:00
Daniil Polyakov
972a7f981b fix(docker): fix dockerfiles to properly build images 2026-06-23 15:24:03 +03:00
Daniil Polyakov
4d7e994e0b refactor(ci): remove install-logos-blockchain-circuits action 2026-06-23 15:22:23 +03:00
Pravdyvy
4d055c71a7 fix(integration tests): fixed wallet ffi integration test 2026-06-23 14:50:23 +03:00
Moudy
5a3601a3cf
Merge pull request #565 from logos-blockchain/board-priority
ci: drive board Priority from labels and archive merged PRs
2026-06-23 10:39:50 +02:00
Moudy
85a058420f ci: drive board Priority from labels and archive merged PRs 2026-06-23 10:36:53 +02:00
Pravdyvy
c3a78d24ef fix(deny): deny fix 2026-06-23 11:17:11 +03:00
Pravdyvy
5c28acc961 fix(wallet_ffi): suggestion fix 2026-06-23 11:10:53 +03:00
Moudy
87f1db203a
Merge pull request #563 from logos-blockchain/pr-review-board 2026-06-22 20:51:07 +02:00
Moudy
d51e068a28 ci: add PR review board sync workflow 2026-06-22 17:59:38 +02:00
Pravdyvy
ca64789a90 Merge branch 'main' into Pravdyvy/ffi-mnemonic 2026-06-22 14:00:08 +03:00
Sergio Chouhy
2c122440ce
Merge pull request #543 from logos-blockchain/schouhy/add-withdrawal-ffi
feat: add withdraw ffi
2026-06-19 23:42:05 -03:00
Sergio Chouhy
32c6b9e5fc feat: add withdraw ffi 2026-06-18 16:35:44 -03:00
Pravdyvy
97230e823b fix(lock): lock update 2026-06-18 19:10:28 +03:00
Pravdyvy
a00886134d fix(nix): lock update 2026-06-18 18:55:48 +03:00
Pravdyvy
c6d7f37a1a Merge branch 'main' into Pravdyvy/ffi-mnemonic 2026-06-18 18:44:00 +03:00
moudyellaz
87d6869e15 fix(wallet): reset last_synced_block on storage restore so notes re-scan from genesis 2026-06-18 13:33:09 +02:00
Pravdyvy
62d9ba10f8
Merge pull request #510 from logos-blockchain/Pravdyvy/programs-elfs-deployments
Pravdyvy/programs elfs deployments
lez-core-v0.1.0
2026-06-17 16:59:18 +03:00