instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0xMiden__node__1215 | 0xMiden/node | 1,215 | defect | 0f82ce112dd98067447aab2579b316e3516dad8d | 5febd9f21d7548d3cd6fc9dd6488de00dc35a1b8 | chore: update `miden-base` to next | This PR updates the node's `miden-base` version to `next`. This is needed to suppress some compilation errors and also to advance this same version in the client. | diff --git a/Cargo.lock b/Cargo.lock
index 3aebde8664..39b99168d5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1510,7 +1510,7 @@ dependencies = [
"libc",
"percent-encoding",
"pin-project-lite",
- "socket2 0.6.0",
+ "socket2 0.5.10",
"system-configuration",
"tokio",
"tower-service",
@@ -2055,9 +2055,8 @@ dep... | 2 | 2 | 0 | [{"id": "G0", "claim": "The 'Vault root mismatch' error message in get_vault_asset_witness should be lowercase so error messages can be chained.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'Failed to open vault asset tree' error message i... | null |
0xMiden__node__1257 | 0xMiden/node | 1,257 | defect | 6e34324243517d5836072e9940de3527a9c49e50 | ffce94c730b7d75c98c7d399e9b92b12a9355184 | chore: add pagination to SyncNotes | closes #1256 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8080984c3..7385840e19 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@
- [BREAKING] Replace `GetAccountProofs` with `GetAccountProof` in the public store API (#[1211](https://github.com/0xMiden/miden-node/pull/1211)).
- Implemented storage map `DataStore` ... | 3 | 3 | 1 | [{"id": "G0", "claim": "The request validation for the required block_range should come before the store call (fetching the chain tip) so that an invalid query does not hit the store.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documented 30-... | null |
0xMiden__node__1273 | 0xMiden/node | 1,273 | defect | f42f0dbd5ff8c5a53bb68aed2a71e3d610d36ad6 | dd842a83325f163686af4a135a5d7f79ac1de55b | chore: update `miden-base` | Update `miden-base` dependency to latest version.
Note: this PR currently points to the next tentative merge to `next` https://github.com/0xMiden/miden-base/pull/1973. Leaving as draft until those changes get pushed.
| diff --git a/Cargo.lock b/Cargo.lock
index 8e21183d52..0bf1e2a465 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17,6 +17,16 @@ version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
+[[package]]
+name = "aead"
+... | 6 | 4 | 0 | [{"id": "G0", "claim": "bobbinth asked whether the stress-test seeding code could use the `ExecutionProof::new_dummy()` constructor instead of manually building the proof with `Proof::new_dummy()` and a hash function, in both `create_consume_note_tx` and `create_emit_note_tx`.", "category": "maintainability", "verdict"... | null |
0xMiden__node__1338 | 0xMiden/node | 1,338 | defect | f8258dc75db2924d9fe07a95c2528daeb279ab21 | 805117404fef4f0cea24b5da4bb716ad04d90026 | refactor: validate note commitments before adding them | Closes #1329
This PR mainly changes transaction checks done between the RPC and mempool and refactors the unauthenticated note's existence checks to be done over `Note::commitment` instead of `Note::id`. The rationale is that the `NoteId` does not commit to `NoteMetadata`, whereas `Note::commitment` does. The requi... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c75265e42c..502f1c0d67 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,7 @@
- Add optional `TransactionInputs` field to `SubmitProvenTransaction` endpoint for transaction re-execution (#[1278](https://github.com/0xMiden/miden-node/pull/1278)).
- Implement `Data... | 7 | 5 | 0 | [{"id": "G0", "claim": "The store should fetch note inclusion proofs directly by note commitment instead of first loading full note records to map commitments back to note IDs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would probably be better to... | null |
0xMiden__node__1457 | 0xMiden/node | 1,457 | defect | dd1446a3d8ff4fb676a2b84e2095678d88cc8469 | 706fb6595466b91e15cb58408472b988ff1f2ea9 | feat: Integrate RPC with Validator for transaction validation | ## Context
The RPC still performs transaction validation from a module in its server crate. Instead, it needs to use the Validator client to allow the Validator component to perform the transaction validation.
Relates to #1316.
## Changes
Note: most of the changes are miscellaneous fixes to bring node up to... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 34017c3e0b..6be32f2bf3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@
- Added chain tip to the block producer status ([#1419](https://github.com/0xMiden/miden-node/pull/1419)).
- The mempool's transaction capacity is now configurable ([#1433](https://gith... | 9 | 8 | 1 | [{"id": "G0", "claim": "create_counter_account should compile the component with CodeBuilder::compile_component_code instead of manually parsing and assembling the module.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Rpc struct's doc comme... | null |
0xMiden__node__1595 | 0xMiden/node | 1,595 | defect | bf1c81f20f10abddcbd3ee112c5e8f496d291198 | 000d7ed068d44d08dbaff6c5ee493e8d2df7be69 | chore: update to miden-base latest | Closes https://github.com/0xMiden/miden-node/issues/1564
The PR was initially intended to use `BlockNumber::MAX` but I needed to update to the latest version of miden-base. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3596dae5bc..33c761c005 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+## v0.14.0 (TBC)
+
+### Enhancements
+
+- [BREAKING] Updated miden-base dependencies to use `next` branch; renamed `NoteInputs` to `NoteStorage`, `.inputs()` to `.storage()... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use BlockNumber::GENESIS instead of BlockNumber::from(0) as the block range start in crates/ntx-builder/src/store.rs, and search the code base for the same pattern and replace those occurrences too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
0xMiden__node__1607 | 0xMiden/node | 1,607 | defect | 2240ce6a99d38fea3f4ea2915deaa7c78c2ac9cf | fc93a8d77f59f5f1412b518beaffc46e8770d786 | feat: rocksdb linkage of existing static rocksdb library is missing stdc++ | ## Problem
`rocksdb-rust` has an issue supplying `stdc++` (for linux, differs for platforms) to rustc at linktime. This implies missing C++ standard library features which in turn causes missing symbols when linking an _existing_ `rocksdb.a`.
### It doesn't show for me
Currently we _do_ recompile both locally ... | diff --git a/Cargo.lock b/Cargo.lock
index c338dda5fb..409cd4a93c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2734,6 +2734,7 @@ dependencies = [
"rand 0.9.2",
"rand_chacha 0.9.0",
"reqwest",
+ "rocksdb-cxx-linkage-fix",
"serde",
"serde_json",
"sha2",
@@ -2760,6 +2761,7 @@ dependencies = [
"miden-node-uti... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new crates/rocksdb-cxx-linkage-fix/src/lib.rs should get a doc comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The workaround comment on the rocksdb-cxx-linkage-fix dependency in the workspace Cargo.toml should ... | null |
0xMiden__node__1682 | 0xMiden/node | 1,682 | defect | 21a84c580e1f37810e9b76d3cf250d7448d42482 | ecab8333a8d5decbaf6712e8cfc3aeab9127c1d2 | fix: follow up to SyncChainMMR RPC | Follows up to apply the following changes:
1. add missed comments to RPC messages and docs
2. remove stale, unused limiter
3. remove pagination from `SyncChainMMR` RPC call | diff --git a/bin/stress-test/src/store/mod.rs b/bin/stress-test/src/store/mod.rs
index 3b9811d6e7..314a5e95d0 100644
--- a/bin/stress-test/src/store/mod.rs
+++ b/bin/stress-test/src/store/mod.rs
@@ -439,9 +439,7 @@ pub async fn bench_sync_chain_mmr(
let request = |_| {
let mut client = store_client.clon... | 2 | 1 | 0 | [{"id": "G0", "claim": "Documentation left over from the removed pagination still refers to it: the `mmr_delta` field comment in proto/proto/rpc.proto still cites `pagination_info`, and the SyncChainMmr paragraphs in crates/store/README.md and docs/external/src/rpc.md still say the response contains pagination info.", ... | null |
0xMiden__node__1750 | 0xMiden/node | 1,750 | defect | 4a4bfa507fa4b23aa98c10f3addfba7eccb71da0 | 7dcc4939b59984a05a3a017bd084c4d5be46dcba | feat: add rate limiter | Adds a rate-limiter with quotas using `tower_governor` and `tower::limit::GlobalConcurrencyLimitLayer`.
Done in scope of our recent fd consumption, generally a useful thing to do.
Makes all parameters configurable and group them into `GrpcOptions` and moves them to `miden-node-utils` to avoid duplication, simi... | diff --git a/Cargo.lock b/Cargo.lock
index bb93114ac1..947014101c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1196,6 +1196,20 @@ dependencies = [
"syn 2.0.114",
]
+[[package]]
+name = "dashmap"
+version = "6.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5041cc499144891f379029... | 3 | 2 | 2 | [{"id": "G0", "claim": "The server may hit the tower_governor common pitfall: with the default PeerIpKeyExtractor and no connect info there is no peer IP address for Tower to find.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The default rate-limi... | null |
0xMiden__node__1764 | 0xMiden/node | 1,764 | defect | 4bec7df7322b447a915befbe39bced260f582fbb | 7f3c776c80d108f8540f74e9afad8b0c292bca16 | feat: Validator bootstrap | Closes #1761
Tested via the following commands locally:
```sh
function bootstrapnode() {
# Bootstrap validator
rm -rf /tmp/validator /tmp/accounts
cfg="/Users/sergeradinovich/Source/miden-node/crates/store/src/genesis/config/samples/01-simple.toml"
export AWS_REGION=REDACTED
miden-node val... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b1aba36cd9..a8978474fb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -27,6 +27,7 @@
- Replaced NTX Builder's in-memory state management with SQLite-backed persistence; account states, notes, and transaction effects are now stored in the database and inflight state is p... | 6 | 4 | 0 | [{"id": "G0", "claim": "The bundled node logs an ERROR on first start because the ntx builder races between fetching the chain tip and subscribing to the mempool, which could be fixed by removing chain_tip from the mempool subscription gRPC as per #1487.", "category": "correctness", "verdict": "uncertain", "priority": ... | null |
0xMiden__node__1782 | 0xMiden/node | 1,782 | defect | e0b168ae03b79cb264188b3a302bbc0a3395a0d7 | e64eff0f533a1556a7b517f7e5d72e2e295f373c | feat/rocksdb: expose rocksdb config per `LargeSmt` tree | As per discussion, lowers the default number of max open file descriptors to 64 from 512 per isntance and exposes them for host specific tuning.
There's a bit of boilerplate due to the conditional `rocksdb` feature gating.
Ref https://github.com/0xMiden/node/issues/1776 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8612b4ab0f..7ab5964c9d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
### Enhancements
+- Expose per-tree RocksDB tuning options ([#1782](https://github.com/0xMiden/node/pull/1782)).
- Added verbose `info!`-level logging to the network transaction build... | 4 | 2 | 1 | [{"id": "G0", "claim": "`pub use rocksdb::*;` is not gated by `#[cfg(feature = \"rocksdb\")]` while the `rocksdb` module it re-exports is, so building the crate without the rocksdb feature fails to compile.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "clai... | null |
0xMiden__node__1837 | 0xMiden/node | 1,837 | defect | 58c07c9614162ba7a0f4abc8d5ad973d2c2cfe9f | d1985278c443386a72264b880925cef4718b23eb | refactor(rpc): normalize NoteSyncRecord with NoteMetadataHeader | closes [#1720](https://github.com/0xMiden/miden-node/issues/1720)
- Refactor `NoteSyncRecord` proto message to be `NoteMetadataHeader` + `NoteInclusionInBlockProof` instead of carrying the full `NoteMetadata`.
- Add `NoteMetadataHeader` proto message containing the fixed-size metadata fields.
- Add `NoteAttachment... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c662ddb5b2..1a83741bcb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -41,6 +41,7 @@
- NTX Builder now deactivates network accounts which crash repeatedly (configurable via `--ntx-builder.max-account-crashes`, default 10) ([#1712](https://github.com/0xMiden/miden-node/pu... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new comment on NoteSyncRecord should be wrapped differently (nit: comment wrapping).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The From<NoteRecord> for proto::note::NoteSyncRecord conversion is unused, so it shou... | null |
0xMiden__node__184 | 0xMiden/node | 184 | defect | cf361489d8a8305203a0226bfca6440e0fd637a7 | 1f9b17316fa40939177b3153ea3111d5f09ec5fd | proposal: remove transaction queue trait | # why?
1. This trait is currently not used for testing.
2. As it currently stands, the block producer itself is the queue. Meaning I think it is unlikely this queue will need an additional implementation to support a remote queue.
3. This change makes `BlockProducerApi` depend on a concrete struct, making it easie... | diff --git a/block-producer/src/server/api.rs b/block-producer/src/server/api.rs
index a8d456f0de..5a9dfb8942 100644
--- a/block-producer/src/server/api.rs
+++ b/block-producer/src/server/api.rs
@@ -11,28 +11,30 @@ use miden_objects::transaction::ProvenTransaction;
use tonic::Status;
use tracing::{debug, info, instru... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `TRANSACTION QUEUE` section header comment should be changed to just `TRANSACTION QUEUE`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}] | null |
0xMiden__node__1843 | 0xMiden/node | 1,843 | defect | 58c07c9614162ba7a0f4abc8d5ad973d2c2cfe9f | cc7ce76cfd215746f8bb9a8648af46f2abe8e1b3 | feat: make `SyncNotes` return multiple blocks | Closes https://github.com/0xMiden/node/issues/1809
This PR updates the RPC component to batch multiple blocks into a single `SyncNotes` response.
## Changes
- RPC `sync_notes` handler now loops over store calls, accumulating blocks until the 4MB budget is exceeded or the range is exhausted
- Proto: changed `Syn... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c662ddb5b2..8b46dc42d9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -31,7 +31,7 @@
- Add #[track_caller] to tracing/logging helpers ([#1651](https://github.com/0xMiden/node/pull/1651)).
- Added support for generic account loading at genesis ([#1624](https://github.com... | 11 | 8 | 4 | [{"id": "G0", "claim": "The response's `block_to` should return the requested `block_to` when the user specified one, rather than always the chain tip.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `SyncNotesResponse` fields should be numbered ... | null |
0xMiden__node__1860 | 0xMiden/node | 1,860 | defect | 08e47a4e8a1319e8d4bb39d522c8c4eda3d91cea | 6976431c3500107e7ef526958020e3623541a1b9 | fix: Update SyncChainMmr endpoint upper bound logic | Closes #1842. | diff --git a/bin/stress-test/src/store/mod.rs b/bin/stress-test/src/store/mod.rs
index 2f3862bcae..ee92204d14 100644
--- a/bin/stress-test/src/store/mod.rs
+++ b/bin/stress-test/src/store/mod.rs
@@ -469,8 +469,8 @@ async fn sync_chain_mmr(
block_to: u32,
) -> SyncChainMmrRun {
let sync_request = proto::rpc::... | 5 | 4 | 1 | [{"id": "G0", "claim": "The new `block_num` field should be named `block_number` to spell the word out.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment 'clamped to the effective tip' should say 'committed chain tip' so the term is unamb... | null |
0xMiden__node__188 | 0xMiden/node | 188 | defect | cf361489d8a8305203a0226bfca6440e0fd637a7 | b1aa6f6ee2f6724b4e47d92ab10007695a196d0b | block_builder: using borrows instead of refcount | The main code base didn't need the reference counting, and could be implemented with slices only. So this PR removes the `Arc<T>`s in favor of borrowing. The idea is that the types are a bit more straight forward (less wrappers), and we save a bit in atomic counting (not that important, most likely negligible). | diff --git a/block-producer/src/batch_builder/batch.rs b/block-producer/src/batch_builder/batch.rs
index 0f1c48d911..8549519d24 100644
--- a/block-producer/src/batch_builder/batch.rs
+++ b/block-producer/src/batch_builder/batch.rs
@@ -4,7 +4,7 @@ use miden_objects::{accounts::AccountId, notes::NoteEnvelope, Digest};
u... | 3 | 3 | 3 | [{"id": "G0", "claim": "The signatures touched by this PR (ensure_in_flight_constraints, ensure_tx_inputs_constraints, Store::get_tx_inputs and TransactionVerifier::verify_tx) should take &ProvenTransaction instead of an owned ProvenTransaction, to avoid cloning the object at the call site.", "category": "design", "ver... | null |
0xMiden__node__200 | 0xMiden/node | 200 | defect | a9100d96632ac006f2c3b674373b499227f428e3 | e574079c67ecaa699c5de93aa82cfb5fa49ac3ca | Fix failed verification for new accounts | The checks that were performed on new txs received by the node were preventing new accounts to submit txs.
Because the `account_hash` of the tx account did not match the `account_hash` contained in the DB for this specific tx account considering that it had never be added.
By default it was `Digest::default()`
... | diff --git a/block-producer/src/state_view/mod.rs b/block-producer/src/state_view/mod.rs
index 034aa93af2..6e7fb1be0d 100644
--- a/block-producer/src/state_view/mod.rs
+++ b/block-producer/src/state_view/mod.rs
@@ -179,7 +179,9 @@ fn ensure_tx_inputs_constraints(
match tx_inputs.account_hash {
Some(stor... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new combined condition should be documented much better and split into two branches for clarity (even if the `store_account_hash != Digest::default()` branch is a no-op).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
0xMiden__node__203 | 0xMiden/node | 203 | defect | a9100d96632ac006f2c3b674373b499227f428e3 | a816a8b50396cd3999f85ba58298c15230069698 | block_builder: fix flaky tests (fixes: #125) | The test `test_build_batch_success` was flaky on the CI because of lack of coordination among the test and the code. This commit fixes the issue by using tokio's paused time loop, with explicity time advances, and a channel to synchronize the batch builder task with the test.
additional details on https://github.com... | diff --git a/block-producer/Cargo.toml b/block-producer/Cargo.toml
index 3925892a4c..3780d24c04 100644
--- a/block-producer/Cargo.toml
+++ b/block-producer/Cargo.toml
@@ -48,3 +48,4 @@ figment = { version = "0.10", features = ["toml", "env", "test"] }
miden-mock = { package = "miden-mock", git = "https://github.com/0x... | 3 | 3 | 0 | [{"id": "G0", "claim": "The newly added tokio dependency in block-producer/Cargo.toml should be placed in alphabetical order.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test's expect message misspells \"Transaction\" as \"Transaciton\" a... | null |
0xMiden__node__253 | 0xMiden/node | 253 | defect | 5452276ce9b660e4963422b40ae84a1447f0901b | f323ffa15d240388a41bc68953b5995ba47ac68f | Improvements in `MockStoreSuccessBuilder` | - `MockStoreSuccessBuilder` and `build_expected_block_header()` now compute produced notes root
- `MockStoreSuccessBuilder::new()` was replaced with two constructors: `from_batches` and `from_accounts` which allow it to fill initial account IDs and state and also nullifiers and produced notes.
This will resolve #79 | diff --git a/block-producer/src/batch_builder/batch.rs b/block-producer/src/batch_builder/batch.rs
index 82ef42667e..2f4752f1d0 100644
--- a/block-producer/src/batch_builder/batch.rs
+++ b/block-producer/src/batch_builder/batch.rs
@@ -116,17 +116,17 @@ impl TransactionBatch {
.map(|(account_id, account_sta... | 1 | 1 | 1 | [{"id": "G0", "claim": "MockStoreSuccessBuilder::from_batches must not initialize the store with the batches' produced nullifiers — they should read [0,0,0,0] in the store so the block kernel can set them, otherwise the Merkle store root becomes inconsistent and the VM fails with BlockProverFailed(ProgramExecutionFaile... | null |
0xMiden__node__287 | 0xMiden/node | 287 | defect | d8edb09f834673ee93d393bbf83b31758ecd3a8c | 618e24ec8949212386ad3518a2dae7b7c91b848e | On-chain accounts protobuf & domain objects | This PR is intended to be 1 of 3 PRs regarding support of on-chain (public) accounts in Miden node. This PR includes only implementation of protobuf and domain objects for on-chain accounts. | diff --git a/.gitignore b/.gitignore
index e92749cc04..32dd01cc51 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,10 @@ target/
# VS Code
.vscode/
+# JetBrains IDEs
+.idea/
+.fleet/
+
# Genesis files
/accounts
genesis.dat
@@ -25,3 +29,7 @@ genesis.dat
*.sqlite3-shm
*.sqlite3-wal
db/
+
+# Configs
+/genes... | 2 | 2 | 1 | [{"id": "G0", "claim": "The granular protobuf messages for the sub-components of `AccountDetails` add code that is not really used, so for now `AccountDetails` should just be `bytes`, with detailed messages added back only if the need arises.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "i... | null |
0xMiden__node__396 | 0xMiden/node | 396 | defect | 6c6b93d5188af48732e5170c8ca01e0f8a1a85e8 | 6b8dfe571a42f6e2fadbfbbdf33224a9fc0a4362 | Addressed review comments for #390 | This PR is created in order to address remaining review comments in https://github.com/0xPolygonMiden/miden-node/pull/390. We had to merge that PR in order to make miden-note compilable against the latest miden-base.
Here we remove in-memory notes map in favor of direct queries to database. Output notes consumed in ... | diff --git a/crates/block-producer/src/batch_builder/batch.rs b/crates/block-producer/src/batch_builder/batch.rs
index 14e181f81d..de6feede30 100644
--- a/crates/block-producer/src/batch_builder/batch.rs
+++ b/crates/block-producer/src/batch_builder/batch.rs
@@ -1,4 +1,4 @@
-use std::collections::BTreeSet;
+use std::co... | 5 | 4 | 2 | [{"id": "G0", "claim": "The select_note_ids helper added in state.rs should probably be moved to the src/db/mod.rs file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Assigning the result of select_note_ids (notes found in the store) to missing... | null |
0xMiden__node__407 | 0xMiden/node | 407 | defect | 2a250f9246a88d3d25c9b14608298990f8ec5bf5 | 493dff48fe4ff1ee5fde54803839bb63ad231ee7 | feat(block-producer): multiple inflight account txs | Support multiple inflight transactions affecting the same account by tracking the latest inflight state of modified accounts. This is then checked against new txns.
This is likely more a progress check than a final PR - I suspect there are more indirect changes that must be made?
Probably missing: tests ensuring ... | diff --git a/crates/block-producer/src/errors.rs b/crates/block-producer/src/errors.rs
index bec167e096..579b0f0e9b 100644
--- a/crates/block-producer/src/errors.rs
+++ b/crates/block-producer/src/errors.rs
@@ -31,10 +31,10 @@ pub enum VerifyTxError {
UnauthenticatedNotesNotFound(Vec<NoteId>),
/// The accou... | 9 | 8 | 2 | [{"id": "G0", "claim": "The new `actual_account_hash` field could be named something else such as `onchain_account_hash`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Merging the inflight account state into the store's transaction inputs feels... | null |
0xMiden__node__426 | 0xMiden/node | 426 | defect | ec9a4ae841db0b2010c7d1bc315dcbae231aff3f | a8a1af6bd23466fe9927701ed2237a56a7a2989c | ci: workflow improvements | This PR adds a few CI niceties and general improvements as listed below. PR can be viewed by commit to see each change in isolation. Some of these were briefly discussed in #425.
1. Remove default workspace members. Having default members causes `cargo build` et al without any target specified to only compile these ... | diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index c5b9e072a4..bc5d6835e3 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -8,12 +8,20 @@ on:
pull_request:
types: [opened, reopened, synchronize]
+# Limits workflow concurrency to only the latest commit in the PR.
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the extra spaces on the second line of the TODO comment in preprocess_sql.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
0xMiden__node__452 | 0xMiden/node | 452 | defect | 8ea93640cc02c8870dd42d477a77713ff0550b2e | 9966c0e0389eface52d8cff6f7e6c0ae394b4033 | feat(faucet): add `after_block_num` to the faucet | This PR introduces a `current_block_number` to the `FaucetClient` and spawns a thread while running the faucet that is in charge of updating the `current_block_number` after `CHAIN_TIP_UPDATER_INTERVAL` time.
This PR also addresses an issue with the `.masm` file adding the execution hint field.
Closes #440
| diff --git a/bin/faucet/src/client.rs b/bin/faucet/src/client.rs
index 4bd0d2f1b7..9af96dfdd6 100644
--- a/bin/faucet/src/client.rs
+++ b/bin/faucet/src/client.rs
@@ -45,6 +45,7 @@ pub struct FaucetClient {
data_store: FaucetDataStore,
id: AccountId,
rng: RpoRandomCoin,
+ current_block_number: u32,
}... | 8 | 6 | 1 | [{"id": "G0", "claim": "The chain tip updater holds the client lock across the update_current_block_number API call, which could take a long time; ideally the RPC call would be separated from the state mutation so that only the latter requires the lock.", "category": "performance", "verdict": "opposed", "priority": "P2... | null |
0xMiden__node__47 | 0xMiden/node | 47 | defect | 0c050c720074fa918497da25a458298d64f81c4c | 811e8c0e98f0816570fdaaf6b1f3e9d03f608f46 | Transaction queue & Batch builder: alternative architecture | This is (yet again) another proposed architecture, after feedback from @hackaugusto and @bobbinth. It is definitely way simpler than the previous proposed architecture. The one downside though is that the relationships between our components must form a DAG (since now to call into another component, you must have a ref... | diff --git a/block-producer/Cargo.toml b/block-producer/Cargo.toml
index d160cce4e3..017bc738b0 100644
--- a/block-producer/Cargo.toml
+++ b/block-producer/Cargo.toml
@@ -17,4 +17,4 @@ winterfell = "0.6"
[dependencies]
async-trait = "0.1"
miden_objects = { workspace = true }
-tokio = { version = "1.29", features = [... | 10 | 7 | 5 | [{"id": "G0", "claim": "Use component names for the traits (e.g. TransactionQueue instead of TransactionQueueTrait) and more specialized names for the concrete implementations (e.g. DefaultTransactionQueue).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
0xMiden__node__48 | 0xMiden/node | 48 | defect | 0c050c720074fa918497da25a458298d64f81c4c | 14e56b79fb4d98764b63a40779cba05eeac9d028 | `StateView` implementation | Closes #41
Builds on #47
Left to do:
- [ ] `verify_tx()`: Also verify proof | diff --git a/block-producer/Cargo.toml b/block-producer/Cargo.toml
index d160cce4e3..1c9d8a5998 100644
--- a/block-producer/Cargo.toml
+++ b/block-producer/Cargo.toml
@@ -16,5 +16,6 @@ winterfell = "0.6"
[dependencies]
async-trait = "0.1"
+itertools = "0.11"
miden_objects = { workspace = true }
-tokio = { version ... | 10 | 7 | 4 | [{"id": "G0", "claim": "The Block struct should drop the state_commitments field (BlockHeader already contains all state commitments) and unroll the state updates onto Block instead of wrapping them in separate structs.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
0xMiden__node__503 | 0xMiden/node | 503 | defect | 790751c69e62077a80115fa9be76301ef3a2b802 | 7d7dbd2cad4a3f12f807a95536d608a7911021bf | Added transaction number limit and updated tests to the limits introduced in `miden-objects` | Resolves issue https://github.com/0xPolygonMiden/miden-base/issues/398
Here we use the latest `miden-objects` with updated/new limits. Also implemented checking for limits we can't check in `miden-objects`. And also updated tests to the latest `miden-object` and added at least one asset in note mockups. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2bbb3df8f7..969a71ee0e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@
- Optimized state synchronizations by removing unnecessary fetching and parsing of note details (#462).
- [BREAKING] Changed `GetAccountDetailsResponse` field to `details` (#481).
- Impr... | 3 | 3 | 2 | [{"id": "G0", "claim": "In the new BuildBatchError messages, `limit` is more precise than `max` (and the same applies to the other error messages below).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The changelog line this PR adds announces an asset-nu... | null |
0xMiden__node__559 | 0xMiden/node | 559 | defect | 54095db301390347efab9d4f9412a55656783d12 | dbb764018a60ad86612afa654832fe956f26cfa6 | chore: migrate code to the latest `miden-base` | Removed unused dependencies, updated errors, fixed compilation errors in order to make node compilable against latest `miden-base`. | diff --git a/Cargo.lock b/Cargo.lock
index 184a24b62a..57a02bff0a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -129,6 +129,12 @@ dependencies = [
"term",
]
+[[package]]
+name = "assert_matches"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b34d609dfbaf33d6889b2b7... | 1 | 1 | 0 | [{"id": "G0", "claim": "The assertion checking the cleared storage item could use `assert_matches!` instead of `assert!(matches!(...))`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
0xMiden__node__64 | 0xMiden/node | 64 | defect | 81547375a1361f01bdbf63acb4994856af4b47de | afb3568f3dbd1e71f536bb36376c86f6652450ab | Compute notes root | Closes: #67
Builds on #55
This builds the notes tree as discussed in https://github.com/0xPolygonMiden/crypto/issues/220, i.e. as a tree of depth 20, where batches' created notes tree roots are inserted at depth 8. | diff --git a/Cargo.toml b/Cargo.toml
index 61af746185..3ac8e3513b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,3 +11,4 @@ resolver = "2"
[workspace.dependencies]
miden-crypto = { package = "miden-crypto", git = "https://github.com/0xPolygonMiden/crypto.git", branch = "next", features = ["std"] }
miden_objects = {... | 8 | 7 | 1 | [{"id": "G0", "claim": "The 'Too many batches in block.' error message is the only capitalized variant and should be lowercased to keep the error messages consistent.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The parallel account_initial_st... | null |
0xMiden__node__657 | 0xMiden/node | 657 | defect | 5b55f309a1975d24b990ac3dc599cdbb8ddd05d6 | 973c7eb717636238f13e631920a954b3593798cf | feat: store seed command in stress test CLI | @bobbinth i'm applying your suggestion of a new structure (your [comment here](https://github.com/0xPolygonMiden/miden-node/pull/621#pullrequestreview-2574388219)). The only thing I changed is that I create all the accounts before hand.
I added some queries to check the size of each table, and the avg size of ea... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ac87a64adb..28c6d2dee5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
### Changes
- [BREAKING] Updated minimum Rust version to 1.84.
+- Added stress test binary with seed-store command (#621).
- [BREAKING] `Endpoint` configuration simplified to a single ... | 18 | 18 | 3 | [{"id": "G0", "claim": "The code instantiates many random number generators, which is expensive (especially the RPO ones); lighter generators should be used and the same instance reused as much as possible.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
0xMiden__node__776 | 0xMiden/node | 776 | defect | ca16a642f3b12cbcafa84acc0ed646481e9c2893 | 65375a81ffdb03c7ba089acf20330a747e44c808 | feat: remove `genesis.dat` | This PR moves the database initialization procedure from node/store startup, to the bootstrap command.
This feels more natural and also removes the need for the temporary `genesis.dat` file that was floating about.
Closes #767.
I also thought I'd need to update the docs, but seems like I was vague enough that... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 654dcd77e6..9233882acd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,10 @@
## v0.9.0 (TBD)
+### Changes
+- [BREAKING] Node database is now created and populated during the bootstrap process instead of on first startup (#776).
+- [BREAKING] Bootstrapping no... | 7 | 6 | 0 | [{"id": "G0", "claim": "The stress test should use the store's `DataDirectory` structure (exposed from the crate) rather than hardcoding the store filename with its own `STORE_FILENAME` constant.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an `ass... | null |
0xMiden__node__781 | 0xMiden/node | 781 | defect | cb8684089a2f98c49c9ff0fa7803d46d71fe1b90 | b6bda48d122a925af298971a6fe734647f229944 | Update to use `TransactionHeader` | Update usages of account updates and batch and block to use the newly introduced `TransactionHeader` from https://github.com/0xPolygonMiden/miden-base/pull/1247.
These are relatively minor updates. I think the only thing worth calling out is the insertion of the transactions into the DB. Currently the table has thes... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 654dcd77e6..14d66ce036 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,7 @@
## v0.9.0 (TBD)
-
+- Adapt to the use of `TransactionHeader` in batches and blocks (#781).
## v0.8.0 (2025-03-26)
diff --git a/Cargo.lock b/Cargo.lock
index f7e433c8da..a962804ea3... | 3 | 1 | 0 | [{"id": "G0", "claim": "Remove this PR's entry from CHANGELOG.md, which is intended for end users / node operators, because the change is not visible to them.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The toml dependency lines may be too long... | null |
0xMiden__node__786 | 0xMiden/node | 786 | defect | cd0f726bfde1d318fb76670f326e069e0895694f | 5cf7de76b4945142079af7734750dca10c6d7da2 | feat: re-add `tonic-web` dependency | In #779 we removed `tonic-web` but this was used to give support to web grcp calls from the web client. This PR re-adds this dependency (in version 0.12, same as `tonic`) and also updates the node to use the latest version of `miden-base`.
Just to keep in mind, it seems that `tonic_web::enable` is removed in version... | diff --git a/Cargo.lock b/Cargo.lock
index 30cc99e3d1..54ff48dedb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -475,9 +475,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.2.17"
+version = "1.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fcb57c740ae1daf453ae85f16e37... | 3 | 3 | 0 | [{"id": "G0", "claim": "A comment should be added explaining why `tonic_web::enable` is needed, so that it is not removed by mistake next time.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be added explaining why `tonic_web::ena... | null |
0xMiden__node__790 | 0xMiden/node | 790 | defect | d1eddd9a1162ee8783c5e1ad43885517cfa17f92 | e77b467c66d35e855274cd7e4b338dddac6c8545 | feat: optimize note scripts storage | Addresses #662
This PR updates the db schemas to have the note scripts normalized. The `details` column in the notes table was removed. Instead, the columns `inputs`, `assets`, `serial_num`, and `script_root` were added. The `script_root` acts as FK to a new `scripts` table.
Also, the NoteRecord was updated. Ins... | diff --git a/Cargo.lock b/Cargo.lock
index b321563a4c..cd64d78f75 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2066,6 +2066,7 @@ dependencies = [
"miden-node-test-macro",
"miden-node-utils",
"miden-objects",
+ "rand 0.9.0",
"regex",
"rusqlite",
"rusqlite_migration",
diff --git a/bin/stress-test/src/metrics.... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new table should be named `note_scripts` instead of `scripts`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `collect` call in `apply_block` can be avoided if `insert_scripts` takes an iterator instead of a slice... | null |
0xMiden__node__911 | 0xMiden/node | 911 | defect | 2fe9cd83195699e6d27465289821a7d30e0beed8 | dfa759ff9365838ad63f24ecb6d1627c3ce594ff | feat: update `miden-base` to next | We need to update the source of the `miden-base` dependencies so that we can also update in the client. | diff --git a/Cargo.lock b/Cargo.lock
index 34aca09fea..4e55c2f036 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1884,9 +1884,8 @@ dependencies = [
[[package]]
name = "miden-block-prover"
-version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "58d59a53f9ff3585d1a3a9b9432b9493... | 3 | 3 | 0 | [{"id": "G0", "claim": "Move the direct git dependencies on miden-base (miden-testing in bin/faucet and miden-block-prover in bin/stress-test) into workspace dependencies so they are defined in one place.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Re... | null |
0xPlaygrounds__rig__1010 | 0xPlaygrounds/rig | 1,010 | defect | debc59c91593958c30e45f56d2c2c385fc23b407 | a067fc6defb9bdc7446564f8915e3eb076c6b95d | fix: implement Serialize for LanceDBFilter to enable LanceDbVectorIndex usage in dynamic_context | Previously, invoking:
```rust
client
.completion_model(&self.openai_model)
.completions_api()
.into_agent_builder()
.temperature(self.temperature)
.preamble(&self.preamble)
.dynamic_context(top_k, vector_index)
.build()
```
would fail with:
```
er... | diff --git a/Cargo.toml b/Cargo.toml
index 491f700e49..7042f8c374 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,7 +29,7 @@ edition = "2024"
[workspace.dependencies]
anyhow = "1.0.98"
-arrow-array = "55.2"
+arrow-array = "56"
as-any = "0.3.2"
assert_fs = "1.1.3"
async-stream = "0.3.6"
@@ -50,7 +50,7 @@ futures ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add an example in rig-lancedb that builds an Agent<M> using LanceDB as a vector store in dynamic_context, so the functionality is exercised in future builds.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
0xPlaygrounds__rig__126 | 0xPlaygrounds/rig | 126 | defect | 2cba66272d5af328fa9177c8a1d8b82d276748b7 | d1e465c0957cb9ae11353944978f02ef92172384 | Feat(integration test): MongoDB | Uses `testcontainers` to create an integration test which validates vector searching with rig on a local mongodb instance. | diff --git a/Cargo.lock b/Cargo.lock
index aefa6a3230..577f67344a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -743,7 +743,7 @@ dependencies = [
"aws-smithy-async",
"aws-smithy-runtime-api",
"aws-smithy-types",
- "rustc_version 0.4.1",
+ "rustc_version",
"tracing",
]
@@ -893,6 +893,56 @@ dependencies = [
"g... | 2 | 2 | 1 | [{"id": "G0", "claim": "Somewhere in the integration test it should be clarified that a docker service needs to be running for the test to work.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add `.name(index_name)` to the `list_search_indexes` bu... | null |
0xPlaygrounds__rig__1284 | 0xPlaygrounds/rig | 1,284 | defect | c5f83d4b488c182b1de48b4aef73df1ab6ae8f66 | a81c7af6a21ed47dc3c643b3d12ce07658be23a1 | feat(agent): allow on_tool_call hook to reject tool execution | Change on_tool_call return type from () to ToolCallHookAction. Returning ToolCallHookAction::Skip{reason} will skip tool execution and return the rejection reason to the LLM as the tool result.
Closes: #1260 | diff --git a/rig/rig-core/examples/permission_control.rs b/rig/rig-core/examples/permission_control.rs
new file mode 100644
index 0000000000..260b8cc8d8
--- /dev/null
+++ b/rig/rig-core/examples/permission_control.rs
@@ -0,0 +1,177 @@
+use anyhow::Result;
+use rig::agent::{CancelSignal, PromptHook, ToolCallHookAction};... | 2 | 2 | 1 | [{"id": "G0", "claim": "The rejection trace line should log tool_name and reason as structured fields instead of interpolating them into the message string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The permission-control examples require A... | null |
0xPlaygrounds__rig__1430 | 0xPlaygrounds/rig | 1,430 | defect | 43fc9fa259afb1c34884c6081f7da9e13fd0c262 | 2276c73ae70d90daf345184e3fa49d8cbbf2943b | feat: add provider-native hosted tool support | Relates #1053
## Summary
This PR adds provider-native hosted tool support to Rig’s completion request flow, with first-class support in OpenAI Responses API and compatible forwarding in other providers.
The issue was that hosted tools (for example `web_search`, `file_search`, `computer_use`) could not be expre... | diff --git a/rig/rig-core/src/completion/request.rs b/rig/rig-core/src/completion/request.rs
index e4cf249ee8..c786b5d1de 100644
--- a/rig/rig-core/src/completion/request.rs
+++ b/rig/rig-core/src/completion/request.rs
@@ -213,6 +213,36 @@ pub struct ToolDefinition {
pub parameters: serde_json::Value,
}
+/// Pr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `with_tool` method needs a docstring stating that it adds a tool supported by the provider and not executed on the client side.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPlaygrounds__rig__1450 | 0xPlaygrounds/rig | 1,450 | defect | c974f9028eafdc4ead3dc616de85be70dbbcce10 | 3d8f4418d2818687860f3d32b74be64090afd1ad | feat(rig-core): return conversation messages from non-streaming agent… | ## Summary
- Adds `messages: Option<Vec<Message>>` field to `PromptResponse` (with `#[non_exhaustive]`)
- Populated only via `extended_details()` path — Standard path pays zero cost
- Internal `collect_messages` bool + private `into_extended()` avoids unnecessary `chat_history.to_vec()` on Standard delegation
- Mir... | diff --git a/rig/rig-core/src/agent/prompt_request/mod.rs b/rig/rig-core/src/agent/prompt_request/mod.rs
index a586cfc5e6..5203a3c5de 100644
--- a/rig/rig-core/src/agent/prompt_request/mod.rs
+++ b/rig/rig-core/src/agent/prompt_request/mod.rs
@@ -88,6 +88,8 @@ where
concurrency: usize,
/// Optional JSON Schem... | 2 | 2 | 1 | [{"id": "G0", "claim": "The collect_messages bool should not be set arbitrarily at the conversion points - forced to false in into_extended() and to true in extended_details() - and it needs a method to set it to true/false instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
0xPlaygrounds__rig__1563 | 0xPlaygrounds/rig | 1,563 | defect | 27bceb8f6f67f4d490c5aea064e3d812736b95f6 | 734f8df82ba7be4eb23eb2bd05398782a3f7410c | feat: make history generic and immutable | This changes prompt generation methods like `prompt` and `stream_prompt` etc to take iterators over references to `Message` as opposed to owned or mutable vectors so that users may decide how to manage chat history and potentially avoid performance pitfalls like cloning large histories.
Because these changes were mo... | diff --git a/rig/rig-core/Cargo.toml b/rig/rig-core/Cargo.toml
index f6d22b41de..147f645be5 100644
--- a/rig/rig-core/Cargo.toml
+++ b/rig/rig-core/Cargo.toml
@@ -63,7 +63,9 @@ reqwest-middleware = { version = "0.5.1", optional = true, features = [
# Native-only dependency for OpenAI Responses websocket mode.
# Keepi... | 4 | 1 | 0 | [{"id": "G0", "claim": "If the `stream_chat` doc comment is rewritten, patterns for gathering the final chat history should still be made clear.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions whether the anthropic oneOf-to-a... | null |
0xPlaygrounds__rig__231 | 0xPlaygrounds/rig | 231 | defect | ca9b4cbfd0b06e3fedb64aca468b89b0813c58e0 | 1374cb9a4d5d740c1c998d69cf447190af95b114 | feat: postgres vector store | Resolves #5 based on PR #157
@milancermak mentioned not having time to finish his PR so I created this one based on his implementation.
Current code has just the library code but I added an integration test based on rig-qdrant module, it starts a Docker container with Postgres + PgVector and it simulate calls to ... | diff --git a/Cargo.lock b/Cargo.lock
index 72cab45e5d..6276a2fa3d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -69,9 +69,9 @@ checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
[[package]]
name = "anyhow"
-version = "1.0.93"
+version = "1.0.95"
source = "registry+https://github.com/rust-l... | 7 | 6 | 1 | [{"id": "G0", "claim": "The README example uses `pool` without showing how it is defined; its definition should be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The example's `TRUNCATE documents` query should carry a comment saying it dele... | null |
0xPlaygrounds__rig__533 | 0xPlaygrounds/rig | 533 | defect | 5341ae982bd885a2025ff8762c33a7f823c48249 | b025de4f3a4d63f375d2f0fb5eb52525e26cd966 | feat: add ScyllaDB vector store implementation | ## Summary
Adds a new ScyllaDB vector store implementation to the Rig ecosystem.
Fixes #531
## Implementation Details
- New `rig-scylladb` crate following existing vector store patterns
- Application-level cosine similarity search (similar to SQLite/SurrealDB implementations)
- `VectorStoreIndex` trait implem... | diff --git a/Cargo.lock b/Cargo.lock
index 1c8ac84ab5..f53bc39cba 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8283,6 +8283,15 @@ dependencies = [
"rand 0.8.5",
]
+[[package]]
+name = "rand_pcg"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b48ac3f7ffaab7fac4d237... | 5 | 5 | 0 | [{"id": "G0", "claim": "Replace the hardcoded `edition = \"2021\"` in rig-scylladb/Cargo.toml with `edition = { workspace = true }` because a recently merged PR updated all crate editions to 2024.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
0xPlaygrounds__rig__563 | 0xPlaygrounds/rig | 563 | defect | b6d574e8383927dc2bdde1ec2490e1050c0b1755 | e5918eaa754b13c62b2c42927614642174c0542f | feat: support inserting documents as a trait | fixes #524
1. added a trait `InsertDocument` in rig-core/vector-store.
2. updated all the `insert_document` methods from db to use the new trait
| diff --git a/Cargo.lock b/Cargo.lock
index 156a23a25c..e2e4ced0e9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -9141,6 +9141,7 @@ dependencies = [
"as-any",
"assert_fs",
"async-stream",
+ "async-trait",
"base64 0.22.1",
"bytes",
"epub",
@@ -9236,6 +9237,7 @@ name = "rig-milvus"
version = "0.1.0"
dependenci... | 7 | 7 | 1 | [{"id": "G0", "claim": "The `#[async_trait]` macro on the new InsertDocuments trait should not be used; the trait should be written with native async/impl-Future signatures so the feature does not require adding the async-trait crate.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
0xPlaygrounds__rig__755 | 0xPlaygrounds/rig | 755 | defect | 2f3dfc67880d3a16bd689c642ac59131e567fd34 | ac8f3088dc465060e18487663ae6d28d2ff77a9d | fix(openai responses): recursively add additionalProperties: false |
- Add add_props_false() helper function
- Process $defs, properties, items, and schema composition (anyOf/oneOf/allOf)
- Handle nested structs, arrays, and enums in OpenAI Responses API
- Add tests for these schema patterns
Fixes #743 | diff --git a/rig-core/src/providers/openai/responses_api/mod.rs b/rig-core/src/providers/openai/responses_api/mod.rs
index 0a0220c8ec..554d3842ff 100644
--- a/rig-core/src/providers/openai/responses_api/mod.rs
+++ b/rig-core/src/providers/openai/responses_api/mod.rs
@@ -332,6 +332,51 @@ pub struct ResponsesToolDefiniti... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo in the test file name `openai_respose_schema.rs` (should be `response` instead of `respose`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPolygonZero__plonky2__1006 | 0xPolygonZero/plonky2 | 1,006 | defect | 137a9966e0432be7d135855c11ba2df032de323e | 3b7ad771e0ddc4e4ff0fcd862996d27823a0c271 | Blake2_f function and precompile call | Changes to bring the blake implementation in line with what the yellow paper specifies:
Replaces the blake2b hash function with the blake2_f compression function (which is most of the internal part of the hash function). The rest of blake2b is kept around in case it's useful, but isn't included in the kernel. Adds a n... | diff --git a/evm/src/cpu/kernel/aggregator.rs b/evm/src/cpu/kernel/aggregator.rs
index 63e63aae1f..6202112383 100644
--- a/evm/src/cpu/kernel/aggregator.rs
+++ b/evm/src/cpu/kernel/aggregator.rs
@@ -76,14 +76,15 @@ pub(crate) fn combined_kernel() -> Kernel {
include_str!("asm/curve/wnaf.asm"),
include... | 3 | 3 | 3 | [{"id": "G0", "claim": "When the calldata size is not 213, the precompile should jump to fault_exception instead of panicking via %assert_eq_const(213).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The address is not on the stack for blake2, so th... | null |
0xPolygonZero__plonky2__1026 | 0xPolygonZero/plonky2 | 1,026 | defect | 46c7903b5dd52d7d60a1213bb5124c190dae138a | 71568420318d2a6699164a17710f8babd95ebb6f | Fix the memory CTL and implement the verifier memory bus | This pull request fixes the memory CTL so that it doesn't have to be disabled anymore.
It also introduces a verifier-only memory bus to check a small set of memory operations.
## `KeccakSponge` endianness
Related issue: https://github.com/mir-protocol/plonky2/issues/1004
In the `KeccakSponge` STARK, the output of... | diff --git a/evm/src/all_stark.rs b/evm/src/all_stark.rs
index 6ae6ad3eff..1fbfe403ea 100644
--- a/evm/src/all_stark.rs
+++ b/evm/src/all_stark.rs
@@ -8,7 +8,7 @@ use crate::config::StarkConfig;
use crate::cpu::cpu_stark;
use crate::cpu::cpu_stark::CpuStark;
use crate::cpu::membus::NUM_GP_CHANNELS;
-use crate::cross... | 4 | 4 | 0 | [{"id": "G0", "claim": "Combine the initial definition of `looking_zs_prod` in `verify_cross_table_lookups` with the later multiplication by the extra product into one expression, getting rid of the `mut`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Bu... | null |
0xPolygonZero__plonky2__1172 | 0xPolygonZero/plonky2 | 1,172 | defect | c9eed2bbf935c8da540df11de53edd2a78ed3497 | 126bb5844ebbeaf3a61fff0bcd1ab68fc6ce8b5b | Write trie roots to memory before kernel bootstrapping | See #1164 for discussion.
NB: This PR breaks the EVM test runner. Will open a PR to fix the runner once this is merged. | diff --git a/evm/src/cpu/kernel/asm/main.asm b/evm/src/cpu/kernel/asm/main.asm
index e87b790cba..93503add18 100644
--- a/evm/src/cpu/kernel/asm/main.asm
+++ b/evm/src/cpu/kernel/asm/main.asm
@@ -7,9 +7,9 @@ global main:
%jump(load_all_mpts)
global hash_initial_tries:
- %mpt_hash_state_trie %mstore_global_m... | 2 | 1 | 0 | [{"id": "G0", "claim": "The h2u closure defined in apply_metadata_and_tries_memops should get a dedicated function declaration in evm/src/util.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The self_balance_gas_cost test fails with a KernelP... | null |
0xPolygonZero__plonky2__1193 | 0xPolygonZero/plonky2 | 1,193 | defect | d96c649169dde116ee5e6f35c77565d7611f1019 | 68bb49671dedeaedc48b7257a81d2b84a0201609 | Observe PublicValues | Deals with the TODO on observing public values when generating challenges.
Note that I had to update some tests as we'd have a cast overflow otherwise. | diff --git a/evm/src/fixed_recursive_verifier.rs b/evm/src/fixed_recursive_verifier.rs
index f1a017e5ae..d48afd8cce 100644
--- a/evm/src/fixed_recursive_verifier.rs
+++ b/evm/src/fixed_recursive_verifier.rs
@@ -33,6 +33,7 @@ use crate::cpu::cpu_stark::CpuStark;
use crate::cpu::kernel::constants::global_metadata::Globa... | 2 | 1 | 0 | [{"id": "G0", "claim": "The base fee often is larger than 2^32 (e.g. ~13.15 Gwei on a recent block), so converting it with as_u32()/from_canonical_u32 would lead to a panic here and elsewhere.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Since d... | null |
0xPolygonZero__plonky2__1208 | 0xPolygonZero/plonky2 | 1,208 | defect | a0b2b489922b6b3e03116bf78cff323cc579ddd4 | 8700d93c848ace62a697695dcbdbaaf8be52356c | Add blockhash opcode | This PR implements the BLOCKHASH opcode, following @wborgeaud's second suggestion [in this issue](https://github.com/mir-protocol/plonky2/issues/1173). It includes links between proofs, a couple of unit tests and the challenger observing the additional public values (the previous and current block hashes).
closes #1... | diff --git a/evm/src/cpu/kernel/asm/core/syscall_stubs.asm b/evm/src/cpu/kernel/asm/core/syscall_stubs.asm
index 88124256f4..70a64b87da 100644
--- a/evm/src/cpu/kernel/asm/core/syscall_stubs.asm
+++ b/evm/src/cpu/kernel/asm/core/syscall_stubs.asm
@@ -1,14 +1,6 @@
// Labels for unimplemented syscalls to make the kernel... | 5 | 5 | 1 | [{"id": "G0", "claim": "The blockhash routine's arithmetic needs overflow handling: the block_number+256 addition and the %increment can overflow, and an overflowing or out-of-range block_number should return 0 rather than fault or wrap.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i... | null |
0xPolygonZero__plonky2__1212 | 0xPolygonZero/plonky2 | 1,212 | defect | 3571f097071ce0804600b5230ac7065cb3b62bda | 83dc90d0811476d3af5edb8b8863177133dfb542 | Move byte packing / unpacking to a distinct table | Following suggestion for points 1 and 2 in #1120, this PR introduces a new `BytePacking` table to reduce the CPU/Memory overhead induced by the `%mload_packing` and `%mstore_unpacking` operations in `packing.asm`.
More specifically (thanks @nbgl for the explanations!), there are now two new instructions, `MLOAD_32BY... | diff --git a/evm/src/all_stark.rs b/evm/src/all_stark.rs
index b0f3056cf6..068b0bcbf9 100644
--- a/evm/src/all_stark.rs
+++ b/evm/src/all_stark.rs
@@ -6,6 +6,7 @@ use plonky2::hash::hash_types::RichField;
use crate::arithmetic::arithmetic_stark;
use crate::arithmetic::arithmetic_stark::ArithmeticStark;
+use crate::... | 9 | 9 | 1 | [{"id": "G0", "claim": "Please document what the expression building the output columns in `ctl_looked_data` is calculating and how it does so.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please document the `BYTE_RANGE_MAX` constant.", "catego... | null |
0xPolygonZero__plonky2__1228 | 0xPolygonZero/plonky2 | 1,228 | defect | 3571f097071ce0804600b5230ac7065cb3b62bda | 4d7d9ffa3cc5a6ba39389a28c18657f641636ce6 | Constrain genesis block's state trie. | As per the TODO in `create_block_proof`, this PR checks that the genesis block has a state trie of a predetermined form. The genesis state trie is provided as an input and stored among the public values.
@wborgeaud Please let me know if this is what you had in mind for the genesis state trie! | diff --git a/evm/src/fixed_recursive_verifier.rs b/evm/src/fixed_recursive_verifier.rs
index 72844db69c..4d3f4d3d60 100644
--- a/evm/src/fixed_recursive_verifier.rs
+++ b/evm/src/fixed_recursive_verifier.rs
@@ -640,6 +640,11 @@ where
lhs: &ExtraBlockDataTarget,
rhs: &ExtraBlockDataTarget,
) {
+ ... | 3 | 3 | 1 | [{"id": "G0", "claim": "The genesis block constraint code could be grouped into a dedicated genesis_block-related function for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "lhs.genesis_state_root may also need to be connected to pvs.ge... | null |
0xPolygonZero__plonky2__1231 | 0xPolygonZero/plonky2 | 1,231 | defect | 15064b3aa7cc337438fad625afc8107a754dee16 | f3ea95cacca58d2e87fd4066ba13105aef36d510 | Remove risks of panic | The `as_u32` / `as_u64` methods of `U256` will panic if the integer is actually greater, which is not ideal.
This PR handles soft conversions which error instead of panicking.
Also prevents panicking from the interpreter methods and tests. | diff --git a/evm/src/cpu/kernel/interpreter.rs b/evm/src/cpu/kernel/interpreter.rs
index 6039c51505..c4deba99c5 100644
--- a/evm/src/cpu/kernel/interpreter.rs
+++ b/evm/src/cpu/kernel/interpreter.rs
@@ -200,7 +200,7 @@ impl<'a> Interpreter<'a> {
self.generation_state.memory.contexts[0].segments[segment as usiz... | 1 | 1 | 0 | [{"id": "G0", "claim": "The name `u256_lowest_limb` misleadingly suggests it takes the lowest limb of any U256 when it only handles values that entirely fit in one limb, so it should be renamed to something like `u256_to_u32` (and likewise the u64 version).", "category": "maintainability", "verdict": "supported", "prio... | null |
0xPolygonZero__plonky2__1232 | 0xPolygonZero/plonky2 | 1,232 | defect | f944a08b4d14180a22942f83c69f1426f7ebaa8e | d83f77c780585bcb6bf028529c071c057297b11d | Transactions trie support | This PR updates the transaction trie with the processed transactions.
The transaction trie update is done as follows:
- After reading and decoding each transaction from the prover inputs we copy the txn rlp and its size to the trie data segment. The pointer to this data is then used as payload for inserting a nod... | diff --git a/evm/src/cpu/kernel/aggregator.rs b/evm/src/cpu/kernel/aggregator.rs
index 160702df74..062844ce23 100644
--- a/evm/src/cpu/kernel/aggregator.rs
+++ b/evm/src/cpu/kernel/aggregator.rs
@@ -132,6 +132,7 @@ pub(crate) fn combined_kernel() -> Kernel {
include_str!("asm/rlp/encode.asm"),
include... | 4 | 4 | 0 | [{"id": "G0", "claim": "The \"Pre-stack\" comment above process_receipt in create_receipt.asm should be updated to include num_nibbles.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The empty-trie sanity checks that start_txns adds for txn_nb and... | null |
0xPolygonZero__plonky2__1250 | 0xPolygonZero/plonky2 | 1,250 | defect | 0abc3b92104893bb0f725178ad35f6bb94098f35 | 8ae161ed207a3df95853304423f062a401fbe295 | Handle additional panics | This PR partly addresses #1247. More specifically, it handles (on the EVM crate):
- all risky `as_usize()` calls
- all risky `expect()` calls
- `U256` methods with implicit internal panic (`from_big_endian` / `from_big_endian` / `div_mod`).
I haven't changed (unless required from cascade changes) the kernel / t... | diff --git a/evm/src/cpu/kernel/interpreter.rs b/evm/src/cpu/kernel/interpreter.rs
index c4deba99c5..8f19a0728f 100644
--- a/evm/src/cpu/kernel/interpreter.rs
+++ b/evm/src/cpu/kernel/interpreter.rs
@@ -117,7 +117,7 @@ impl<'a> Interpreter<'a> {
let mut result = Self {
kernel_mode: true,
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The map_err closures should include the underlying ProgramError (e.g. `{:?}`) in the anyhow! message so it is clearer which error was thrown, and the same applies elsewhere in this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
0xPolygonZero__plonky2__1258 | 0xPolygonZero/plonky2 | 1,258 | defect | 1ff6d4a2839a0cd16598a5db263568885a47e7c9 | 5c44c9c383cae02300880b88a0cd2281dad0cd8b | Optimize lookup builder | This PR optimizes the instantiation of `LookupGate` and `LookupTableGate` instances when building a circuit. The optimization seems to be particularly effective on big lookup tables (e.g., with 2^16 elements).
To this extent, I have added a couple of tests in `lookup_test.rs` that perform lookups over a big lookup tab... | diff --git a/plonky2/src/gadgets/lookup.rs b/plonky2/src/gadgets/lookup.rs
index b71b780879..ce8727e67d 100644
--- a/plonky2/src/gadgets/lookup.rs
+++ b/plonky2/src/gadgets/lookup.rs
@@ -89,25 +89,53 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
let lookups = self.get_l... | 3 | 3 | 0 | [{"id": "G0", "claim": "The block comment should use `//` instead of `/* */`, to match the style used elsewhere in the codebase.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `enumerate` in the loop over `last_chunk` is not needed, since the index is... | null |
0xPolygonZero__plonky2__1264 | 0xPolygonZero/plonky2 | 1,264 | defect | 0f19cd0dbc25f9f1aa8fc325ae4dd1b95ca933b3 | 4d9f53c964c63dd7dd01e126ef038408aad9b2bd | Derive clone for txn RLP structs | Also move them behind a transaction_testing module for clarity on their expected usage.
@wborgeaud Would you mind having another look? | diff --git a/evm/src/generation/mpt.rs b/evm/src/generation/mpt.rs
index 1f1be2b9a0..851dbc9faf 100644
--- a/evm/src/generation/mpt.rs
+++ b/evm/src/generation/mpt.rs
@@ -33,92 +33,96 @@ impl Default for AccountRlp {
}
}
-#[derive(RlpEncodable, RlpDecodable, Debug)]
-pub struct AccessListItemRlp {
- pub addr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The transaction_testing module placed in the middle of the file looks a bit weird; maybe it can be moved to the end of the file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
0xPolygonZero__plonky2__1314 | 0xPolygonZero/plonky2 | 1,314 | defect | 3aeec83a05a6150fec8b08eeb349f5d4e891e1a5 | 15a9e9928a896cfbdf1916861e4e66ffaa297d3e | Refactor `%wcopy` and unify {ext}codecopy related code | cf discussion in here: https://github.com/0xPolygonZero/plonky2/pull/1309/files#r1371598536
Moved `extcodecopy` with the other `wcopy` related syscalls, though I could leave it in `account_code.asm` but would need to have all internal labels defined globally.
Below a non fully exhaustive list of tests for the rel... | diff --git a/evm/src/cpu/kernel/asm/account_code.asm b/evm/src/cpu/kernel/asm/account_code.asm
index ee19819837..4dddc6dfd6 100644
--- a/evm/src/cpu/kernel/asm/account_code.asm
+++ b/evm/src/cpu/kernel/asm/account_code.asm
@@ -80,110 +80,6 @@ global extcodesize:
// stack: extcodesize(address), retdest
SWAP1 J... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `PUSH wcopy_within_bounds` followed by `JUMP` could be written as the single `%jump(wcopy_within_bounds)` macro.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The extra `_dummy` pop added in `run_exit_kernel` looks w... | null |
0xPolygonZero__plonky2__1322 | 0xPolygonZero/plonky2 | 1,322 | defect | f71f227d3ca8ac6da62ff3748a2279dc4fd23c77 | 53221cf45ba993572ef79684cabcfcfd7fc2fa75 | Add withdrawals | Add withdrawals as a public input array of `address, amount`. See EIP-4895. | diff --git a/evm/src/cpu/kernel/aggregator.rs b/evm/src/cpu/kernel/aggregator.rs
index bda2ab610e..e7a9069e4c 100644
--- a/evm/src/cpu/kernel/aggregator.rs
+++ b/evm/src/cpu/kernel/aggregator.rs
@@ -43,6 +43,7 @@ pub(crate) fn combined_kernel() -> Kernel {
include_str!("asm/core/log.asm"),
include_str... | 1 | 1 | 0 | [{"id": "G0", "claim": "Question why the withdrawals test uses AllRecursiveCircuits instead of a plain prove/verify, noting it could deprecate empty_txn_list and suggesting combining the root_proof with a dummy one to still showcase prove_aggreg/prove_block in CI.", "category": "design", "verdict": "supported", "priori... | null |
0xPolygonZero__plonky2__1341 | 0xPolygonZero/plonky2 | 1,341 | defect | 605932d149eeba4558b404b52180e9ac20daca87 | 05d75cbc54c5094846ab739f9d4ef652e1dd1a89 | Remove logic for multiple txns at once | Following discussions on not supporting txn grouping in a single proof for now, this removes the corresponding logic. Now the prover only processes 0 (empty proofs) or a single txn.
| diff --git a/evm/src/cpu/kernel/asm/core/process_txn.asm b/evm/src/cpu/kernel/asm/core/process_txn.asm
index 95a36831b4..3e7e35db70 100644
--- a/evm/src/cpu/kernel/asm/core/process_txn.asm
+++ b/evm/src/cpu/kernel/asm/core/process_txn.asm
@@ -452,22 +452,22 @@ global invalid_txn:
POP
%mload_txn_field(@TXN_FIE... | 1 | 1 | 0 | [{"id": "G0", "claim": "Avoid cloning signed_txn by using as_ref().unwrap_or(&vec![]) (or a map) instead of cloning the whole txn.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPolygonZero__plonky2__1359 | 0xPolygonZero/plonky2 | 1,359 | defect | eda7fd659e2cacedade0c6983e9252137ea8d051 | 0b1cfa35320f68d83dc62e7000dce2b6df0608ab | Changes in interpreter and implement interpreter version for add11 | This PR makes a bunch of changes to the interpreter, so that more tests can be run. Amon other things, it implements add11 in the interpreter. The changes are:
- it removes the registers `kernel_mode` and `context`, thus making the interpreter only use the registers in `generation_state`,
- it uses `run_syscall` when... | diff --git a/evm/src/cpu/kernel/interpreter.rs b/evm/src/cpu/kernel/interpreter.rs
index 6c5c1a87b6..6d49570a96 100644
--- a/evm/src/cpu/kernel/interpreter.rs
+++ b/evm/src/cpu/kernel/interpreter.rs
@@ -43,9 +43,7 @@ impl MemoryState {
}
pub(crate) struct Interpreter<'a> {
- pub(crate) kernel_mode: bool,
ju... | 13 | 12 | 0 | [{"id": "G0", "claim": "A `set_multi` style helper plus a `global_metadata` binding on top would make the repeated GlobalMetadata sets in the add11 test more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Returning a Result from the ad... | null |
0xPolygonZero__plonky2__1370 | 0xPolygonZero/plonky2 | 1,370 | defect | 7a50292a01978da9d180669f712e70eeb7facf23 | 4b99da0f1c0b20851c2bc88a8438f13197160342 | Initialize blockhashes | @BGluth This PR initializes the block hashes of the genesis block.
| diff --git a/evm/src/fixed_recursive_verifier.rs b/evm/src/fixed_recursive_verifier.rs
index 9f3ec06cf9..1a2cddccda 100644
--- a/evm/src/fixed_recursive_verifier.rs
+++ b/evm/src/fixed_recursive_verifier.rs
@@ -1035,7 +1035,8 @@ where
} else {
// Initialize genesis_state_trie, state_root_after and... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment at the start of the genesis branch is missing an update to mention the block hashes that this PR initializes there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPolygonZero__plonky2__1382 | 0xPolygonZero/plonky2 | 1,382 | defect | d4b05f3730c70a2549f32d430b5446bb5f0f4e07 | 0cf043a3959b759072e06e5153f4cbfffafecf60 | Fix genesis block number in `prove_block` | Fix genesis block number on the `prove_block` side + add sanity check. | diff --git a/evm/src/fixed_recursive_verifier.rs b/evm/src/fixed_recursive_verifier.rs
index 9628e5fcdd..339ca19076 100644
--- a/evm/src/fixed_recursive_verifier.rs
+++ b/evm/src/fixed_recursive_verifier.rs
@@ -663,14 +663,14 @@ where
builder.connect(pvs.txn_number_before, lhs.txn_number_before);
buil... | 4 | 2 | 0 | [{"id": "G0", "claim": "The reviewer is unsure whether the genesis-block-number fix is covered by the test suite and suggests the suite should have caught it.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new inconsistency error message should incl... | null |
0xPolygonZero__plonky2__1393 | 0xPolygonZero/plonky2 | 1,393 | defect | 471ff68d512bd51477b713bf3d3e961c474ced99 | 71ac03922b8c887e8d786d4d2f123023199b47b5 | Add exceptions handling to the interpreter | This PR adds exceptions handling to the interpreter. It also adds a test with a stack underflow exception in the user code (in add11.rs). | diff --git a/evm/src/cpu/kernel/interpreter.rs b/evm/src/cpu/kernel/interpreter.rs
index 3be12e1f24..7398182826 100644
--- a/evm/src/cpu/kernel/interpreter.rs
+++ b/evm/src/cpu/kernel/interpreter.rs
@@ -4,7 +4,7 @@ use core::cmp::Ordering;
use std::collections::HashMap;
use std::ops::Range;
-use anyhow::{anyhow, ba... | 5 | 5 | 0 | [{"id": "G0", "claim": "The new `.expect(\"Stack should not overflow.\")` message in account_code.rs should read \"The stack should not overflow.\" to match the expect messages used above it.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ga... | null |
0xPolygonZero__plonky2__1429 | 0xPolygonZero/plonky2 | 1,429 | defect | 71dff6e9827f501bc59416dc25ce06c4aec030ab | adef93ebbbea4e8df6dc98e5001e60189af5f409 | Add aborting signal | @cpubot: I'm not super satisfied with how it looks, but it's probably conceptually the simplest way to do what you wanted to notify workers to abort early. Does this look good on your end?
Note that the logic is only present for transaction proofs (i.e. `prove_root()`) as aggregation / block proofs are orders of magn... | diff --git a/evm/src/fixed_recursive_verifier.rs b/evm/src/fixed_recursive_verifier.rs
index 87f076c1b5..145abf37cd 100644
--- a/evm/src/fixed_recursive_verifier.rs
+++ b/evm/src/fixed_recursive_verifier.rs
@@ -1,6 +1,8 @@
use core::mem::{self, MaybeUninit};
use std::collections::BTreeMap;
use std::ops::Range;
+use ... | 1 | 1 | 0 | [{"id": "G0", "claim": "It might be worth making the new `abort_signal` parameter an `Option<Arc<AtomicBool>>` instead of a required `Arc<AtomicBool>`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPolygonZero__plonky2__1444 | 0xPolygonZero/plonky2 | 1,444 | defect | f46cf4ef680ddfd4941691a7d37e5a2568a89cf7 | dac115887dda3ef408d745b228555cdb66fa37e5 | Add crate-level documentation | Add crate-level documentation and API explanations for the evm crate.
Should address #1376 | diff --git a/evm/src/config.rs b/evm/src/config.rs
index 24ddb6a78f..269fe54a63 100644
--- a/evm/src/config.rs
+++ b/evm/src/config.rs
@@ -1,13 +1,16 @@
use plonky2::fri::reduction_strategies::FriReductionStrategy;
use plonky2::fri::{FriConfig, FriParams};
+/// A configuration containing the different parameters to... | 15 | 10 | 1 | [{"id": "G0", "claim": "StarkConfig should implement `Default`, essentially what `standard_fast_config` returns.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The `degree_bits_ranges` argument docs are hard to follow (especially the last phrase) and s... | null |
0xPolygonZero__plonky2__1449 | 0xPolygonZero/plonky2 | 1,449 | defect | 3e61f06a1d2012785c65f1708620cf399857ac8d | e0a63429d972c31d497cb5c5606ec46a4792e540 | Fix `after_mpt_delete_extension_branch` | The current implementation of `after_mpt_delete_extension_branch` is buggy.
This PR fixes it and adds a test that fails on the current main. | diff --git a/evm/src/cpu/kernel/asm/mpt/delete/delete_extension.asm b/evm/src/cpu/kernel/asm/mpt/delete/delete_extension.asm
index 149b971d76..0627fcba6a 100644
--- a/evm/src/cpu/kernel/asm/mpt/delete/delete_extension.asm
+++ b/evm/src/cpu/kernel/asm/mpt/delete/delete_extension.asm
@@ -37,18 +37,10 @@ after_mpt_delete_... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hard-coded `2 * 5` in the test's key construction is hard to understand and should be explained or made clearer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPolygonZero__plonky2__1455 | 0xPolygonZero/plonky2 | 1,455 | defect | aedfe5dfa6ac8c5663427ae59692fb7d6635ce17 | c2d8035c2f19ad5144afd5beec648647112b9931 | Interpreter GenerationInputs | This PR adds an initilization method to the interpreter based on `GenerationInputs`. Given a new state, it updates it following `apply_metadata_and_tries_memops` on the STARK side. It also updates the `rlp` and `withdrawal` prover inputs, as well as the MPT roots, as is done when initializing a `GenerationState` on the... | diff --git a/evm/src/cpu/kernel/interpreter.rs b/evm/src/cpu/kernel/interpreter.rs
index b99ccaebc5..4be49954f4 100644
--- a/evm/src/cpu/kernel/interpreter.rs
+++ b/evm/src/cpu/kernel/interpreter.rs
@@ -5,7 +5,8 @@ use std::collections::HashMap;
use std::ops::Range;
use anyhow::bail;
-use ethereum_types::{U256, U51... | 4 | 3 | 0 | [{"id": "G0", "claim": "The doc comments of the two new interpreter-state functions should begin with 'Initializes' (third person) rather than 'Initialize'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The second sentence of the doc comment ('Th... | null |
0xPolygonZero__plonky2__1469 | 0xPolygonZero/plonky2 | 1,469 | defect | 30b47998262642be54da5acf03dfca31af4d93f7 | f0f8899b0634753b625e4209c31b6abff9189881 | Remove some CPU cycles | Removes some CPU cycles:
- all calls to `%mload_packing` can be directly replaced to `MLOAD_32BYTES`, no need for hook + jump
- Similarly for `%mstore_unpacking`, we can sometimes just call directly the variant if the size is known which skips going through the jumptable
- tweaked some very large stack operation i... | diff --git a/evm/src/cpu/kernel/asm/core/create_addresses.asm b/evm/src/cpu/kernel/asm/core/create_addresses.asm
index 1cd50f661a..2af9e8ddb5 100644
--- a/evm/src/cpu/kernel/asm/core/create_addresses.asm
+++ b/evm/src/cpu/kernel/asm/core/create_addresses.asm
@@ -38,19 +38,19 @@ global get_create_address:
global get_cr... | 4 | 4 | 0 | [{"id": "G0", "claim": "The get_create2_address_contd label is no longer needed after the mstore_unpacking jumps were replaced by macros and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The get_create2_address_contd2 and get... | null |
0xPolygonZero__plonky2__1474 | 0xPolygonZero/plonky2 | 1,474 | defect | 39a2d62d6d025631380da88aa78c2f8b929852a2 | b6e241c575334b8bb83062390e99ed036b6bf165 | Fix bugs in jumpdest analysis | This PR incorporates the following changes:
- Fix `test_jumpdest_analysis` which was previously not meaningful, as it only verified that `jumpdest_analysis` never aborted though that can't happen. Now, it verifies the correctness of `SEGMENT_JUMPDEST_BITS` and of `jumpdest_table`.
- Introduce `test_packed_verificati... | diff --git a/evm/src/cpu/kernel/asm/core/jumpdest_analysis.asm b/evm/src/cpu/kernel/asm/core/jumpdest_analysis.asm
index 6ed4df814f..1ae7e775c4 100644
--- a/evm/src/cpu/kernel/asm/core/jumpdest_analysis.asm
+++ b/evm/src/cpu/kernel/asm/core/jumpdest_analysis.asm
@@ -164,12 +164,10 @@ global write_table_if_jumpdest:
... | 4 | 3 | 0 | [{"id": "G0", "claim": "The previous code retrieving the context from `self.registers.context` was not wrong, so replacing it with the stack read via `stack_peek` may be unnecessary, since outside the test `jumpdest_analysis` is only reached through `enter_new_ctx` where the stacked ctx equals the set context.", "categ... | null |
0xPolygonZero__plonky2__591 | 0xPolygonZero/plonky2 | 591 | defect | 33cabb14decad579da1a4daadc373bcf3cbc15ce | 22e0ce2a4698013a57fac3871632c29ad199f9f0 | Begin work on witness generation and kernel bootstrapping | Witness generation is divided into two phases:
- First, the CPU table is generated row-by-row as we simulate the EVM. While doing so we record some info for the next phase, like a list of Keccak inputs.
- Second, we generating all the other tables. This can be done in parallel, though I left it as a future optimizati... | diff --git a/evm/src/all_stark.rs b/evm/src/all_stark.rs
index 130343b394..30976dd235 100644
--- a/evm/src/all_stark.rs
+++ b/evm/src/all_stark.rs
@@ -115,6 +115,7 @@ fn ctl_memory<F: Field>(channel: usize) -> CrossTableLookup<F> {
#[cfg(test)]
mod tests {
use anyhow::Result;
+ use ethereum_types::U256;
... | 9 | 3 | 0 | [{"id": "G0", "claim": "Add a `const_assert` (from an already-used crate) to check that the memory segment constants are all different.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested Vec-of-array-of-Vec-of-array memory state is over-abstr... | null |
0xPolygonZero__plonky2__619 | 0xPolygonZero/plonky2 | 619 | defect | a9fe08a4a781c14c9fa5594072a8a8a69ea66a4b | 925483ed1eb0f6724ece0dde50c5b576377607e4 | Add custom opcodes | - `GET_STATE_ROOT` and `SET_STATE_ROOT` deal with the root of the state trie, and will be called from storage routines. Similarly `GET_RECEIPT_ROOT` and `SET_RECEIPT_ROOT` deal with the root of the receipt trie.
- `PANIC` enables an unsatisfiable constraint, so no proof can be generated.
- `GET_CONTEXT` and `SET_CONT... | diff --git a/evm/src/cpu/columns.rs b/evm/src/cpu/columns.rs
index f3a400c60a..c79f9e9d83 100644
--- a/evm/src/cpu/columns.rs
+++ b/evm/src/cpu/columns.rs
@@ -90,6 +90,10 @@ pub struct CpuColumnsView<T> {
pub is_msize: T,
pub is_gas: T,
pub is_jumpdest: T,
+ pub is_get_state_root: T,
+ pub is_set_s... | 6 | 2 | 2 | [{"id": "G0", "claim": "A panicking program is a perfectly valid input, so the interpreter should not itself panic when the PANIC opcode executes; it should return a Result instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The macros mload_cur... | null |
0xPolygonZero__plonky2__729 | 0xPolygonZero/plonky2 | 729 | defect | 3da80fffe0736600585863b58b5fcee28a770fd2 | 84187ca709d2300779658b7708e1aa1374197916 | Added a mapping between code hashes and contract byte code | Added a mapping between an account's `code_hash` field and the actual contract byte code in `GenerationInputs`. | diff --git a/evm/src/generation/mod.rs b/evm/src/generation/mod.rs
index baf2ec32bd..38539be3f3 100644
--- a/evm/src/generation/mod.rs
+++ b/evm/src/generation/mod.rs
@@ -1,5 +1,7 @@
+use std::collections::HashMap;
+
use eth_trie_utils::partial_trie::PartialTrie;
-use ethereum_types::Address;
+use ethereum_types::{Add... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new doc comment's guarantee that every account entry with `code_hash` filled in will have its byte code in the map is not strictly necessary — an account that merely receives tokens needs its `(nonce, balance, codeHash, storageRoot)` but not its code.", "category": "documentation", "verdict"... | null |
0xPolygonZero__plonky2__759 | 0xPolygonZero/plonky2 | 759 | defect | 1275bcca5bc0dcd954ed4c97ed9685e6fdf29140 | 9ebbc033bc24685957bfb920cf30d2c77f620946 | Fix RipeMD padlength issue | The problem was downstream of an error in my simplification of the original Python implementation. The original paldength definition was:
```python
x = 64 - length % 64
if x < 9:
x += 64
return x - 8
```
and in my Python code, I had made the error of computing it as
```py
x = 56 - length % 64
return x + (... | diff --git a/evm/src/cpu/kernel/asm/ripemd/main.asm b/evm/src/cpu/kernel/asm/ripemd/main.asm
index f9b28c94ff..bbcb40688a 100644
--- a/evm/src/cpu/kernel/asm/ripemd/main.asm
+++ b/evm/src/cpu/kernel/asm/ripemd/main.asm
@@ -88,20 +88,20 @@ global process:
/// def padlength(length):
-/// t = length % 64
-/// r... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `length` parameter of `make_input_stack` is redundant and should be removed in favour of using `message.len()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPolygonZero__plonky2__855 | 0xPolygonZero/plonky2 | 855 | defect | d90a0559297366e1e2390cff9e3d1d5cf53875b7 | 8ee2bc74d0a90db1630fc141476b428abc7b8ca1 | Shrink STARK proofs to a constant degree | The goal here is to end up with a single "root" circuit representing any EVM proof. I.e. it must verify each STARK, but be general enough to work with any combination of STARK sizes (within some range of sizes that we chose to support). This root circuit can then be plugged into our aggregation circuit.
In particula... | diff --git a/evm/src/cross_table_lookup.rs b/evm/src/cross_table_lookup.rs
index 4930321a72..2d55c6dba5 100644
--- a/evm/src/cross_table_lookup.rs
+++ b/evm/src/cross_table_lookup.rs
@@ -8,7 +8,6 @@ use plonky2::field::packed::PackedField;
use plonky2::field::polynomial::PolynomialValues;
use plonky2::field::types::F... | 2 | 2 | 0 | [{"id": "G0", "claim": "Asks why 40 was chosen for num_routed_wires in shrinking_config, questioning the choice.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks what the TODO marker on the log::info! line in PublicInputs::from_vec is for.", "category... | null |
0xPolygonZero__plonky2__860 | 0xPolygonZero/plonky2 | 860 | defect | 0ca308400aebcf64d3022e17dbfa8fcb016dd714 | f4ac2d4f9cc1e6316444e37db699ca814ffd7471 | Add aggregation circuit | Which can be used to compress two proofs into one. Each inner proof can be either
- an "EVM root" proof (which typically proves one transaction, though it could be 0 or more)
- another aggregation proof | diff --git a/evm/src/fixed_recursive_verifier.rs b/evm/src/fixed_recursive_verifier.rs
index 1530a071e8..53a82bb6cd 100644
--- a/evm/src/fixed_recursive_verifier.rs
+++ b/evm/src/fixed_recursive_verifier.rs
@@ -3,16 +3,19 @@ use std::ops::Range;
use itertools::Itertools;
use plonky2::field::extension::Extendable;
+... | 2 | 1 | 0 | [{"id": "G0", "claim": "verify_root should take a ProofWithPublicInputs by value instead of a reference, so the cloning it does internally is explicit at the call site.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The root circuit's cyclic_vk field, wh... | null |
0xPolygonZero__plonky2__933 | 0xPolygonZero/plonky2 | 933 | defect | 06936c7649066d6dc59b2d2a2e25ea05ad49d1c9 | 7f28ec183181ca085bc10d4f34a95c55d0770c56 | Signed operations as syscalls | This PR implements `SDIV`, `SMOD`, `SIGNEXTEND`, `BYTE`, `SAR`, `SLT` and `SGT` as kernel syscalls. Also links `EXP` to the syscall subsystem.
Hat tip to @nbgl for several of the syscall implementations. | diff --git a/evm/src/cpu/kernel/aggregator.rs b/evm/src/cpu/kernel/aggregator.rs
index 89f1146797..50ea07c781 100644
--- a/evm/src/cpu/kernel/aggregator.rs
+++ b/evm/src/cpu/kernel/aggregator.rs
@@ -109,6 +109,7 @@ pub(crate) fn combined_kernel() -> Kernel {
include_str!("asm/rlp/num_bytes.asm"),
incl... | 7 | 7 | 2 | [{"id": "G0", "claim": "The SHL shift operand should be explicitly guarded (shift < 256 yields value << shift, else zero) instead of relying on undocumented U256 shift-masking semantics that could change.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
0xPolygon__cdk-data-availability__116 | 0xPolygon/cdk-data-availability | 116 | defect | 9b683fc624b174b68b9490065c0840dc381bc93e | 755252c760c60e6ee7fa8d7e50ef738ebf176752 | More UTs and fix regression tests | Adding more UTs to different packages and fixing regression tests by using latest `kurtosis-cdk` changes. | diff --git a/.github/actions/monitor-cdk-verified-batches/action.yml b/.github/actions/monitor-cdk-verified-batches/action.yml
new file mode 100644
index 0000000..83372bd
--- /dev/null
+++ b/.github/actions/monitor-cdk-verified-batches/action.yml
@@ -0,0 +1,21 @@
+---
+name: monitor-cdk-verified-batches
+description: C... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new TestClient_Factory_New test should call t.Parallel() like the surrounding tests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'invalid keystore file' test should assert the specific error (with ErrorContains or Erro... | null |
0xPolygon__cdk-data-availability__40 | 0xPolygon/cdk-data-availability | 40 | defect | 993f4236b9bbbff87d905453839e7e9398e3dd17 | e43e42dc02d2a6ed3d905517aabef21c43af6755 | Get rid of "types/interfaces" package | As part of simplifying the structure of the repo, moving interfaces from "types/interfaces" to "types" package. "types/interfaces" seems redundant. | diff --git a/mocks/eth_client.generated.go b/mocks/eth_client.generated.go
index 50565e2a..01651d39 100644
--- a/mocks/eth_client.generated.go
+++ b/mocks/eth_client.generated.go
@@ -3,11 +3,12 @@
package mocks
import (
- context "context"
big "math/big"
common "github.com/ethereum/go-ethereum/common"
+ con... | 1 | 1 | 0 | [{"id": "G0", "claim": "Subtest names should include a case label and be 1-based, i.e. use `fmt.Sprintf(\"%d. case\", i+1)` instead of `fmt.Sprintf(\"%d\", i)`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPolygon__cdk-data-availability__5 | 0xPolygon/cdk-data-availability | 5 | defect | 4ace9ee1f2e3720e0c399850ec719f8d09e14f3b | 412f5641eb17de0f8da1dfc93cf72414bfd7052f | Feature/synchronizer | This PR adds a data synchronizer.
1. sync_info table for tracking last processed block for SequenceBatches
2. DataCommitteeWatcher for data committee membership changes
3. BatchSynchronizer that watches for SequenceBatches events starting from last block in sync_info
- checks if keys in batch are stored
- r... | diff --git a/cmd/main.go b/cmd/main.go
index de3505b2..1abb5618 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -12,6 +12,7 @@ import (
"github.com/0xPolygon/supernets2-data-availability/dummyinterfaces"
"github.com/0xPolygon/supernets2-data-availability/services/datacom"
"github.com/0xPolygon/supernets2-data-avail... | 10 | 5 | 2 | [{"id": "G0", "claim": "Remove the leftover debug println(key.Hex()) from GetOffChainData.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Trimming the \"0x\" prefix and decoding with Hex2Bytes is wrong for the stored value, since the expected re... | null |
0xPolygon__cdk-data-availability__64 | 0xPolygon/cdk-data-availability | 64 | defect | 9ed8d9a10aeaf4df1bba9d55267b80ed7d3d817b | 70ceef51947e3b08a52b1fef480e98548aa013bd | Make DAC ws config tracking optional | Make the trackers that track url and addr config changes optional. Retain the initial lookup of the values, but optionally turn off the websocket event tracking.
This can help the gelato situation where they have flakey ws support, and don’t need the feature for now anyway. | diff --git a/config/config.go b/config/config.go
index 58983532..997be95b 100644
--- a/config/config.go
+++ b/config/config.go
@@ -39,6 +39,7 @@ type L1Config struct {
Timeout types.Duration `mapstructure:"Timeout"`
RetryPeriod types.Duration `mapstructure:"RetryPeriod"`
BlockBatchSize ... | 1 | 1 | 0 | [{"id": "G0", "claim": "When the tracker is disabled, an Info-level log line should indicate that tracking is off instead of returning silently.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPolygon__cdk-data-availability__96 | 0xPolygon/cdk-data-availability | 96 | defect | bce3046ee69f1034bf3dc8375c48dd19555a7eb8 | 2ec237e951cc5b80c5d6dc9f1a36b71f4f165bbb | Introduce thread-safe committee map to the `synchronizer` | This PR is continuation of #94 and it introduces thread-safe wrapper around the committee members map, allowing for thread-safe manipulation. | diff --git a/synchronizer/batches.go b/synchronizer/batches.go
index d90720e..5d4111c 100644
--- a/synchronizer/batches.go
+++ b/synchronizer/batches.go
@@ -38,8 +38,7 @@ type BatchSynchronizer struct {
blockBatchSize uint
self common.Address
db db.DB
- committee map[common.Addr... | 3 | 3 | 0 | [{"id": "G0", "claim": "The Range-based iteration in resolve should be replaced with a Copy()-like function that returns the copied slice of members, since the generic Range is overkill for this limited use.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
0xPolygon__polygon-cli__524 | 0xPolygon/polygon-cli | 524 | defect | e999be078a91c948b43ef35a28334ec0a5be2a80 | dd24cb9a8b3d966378326df4d06d4a88ec5789ff | add a flag loader to allow flags to be set also via env vars | # Description
closes https://github.com/0xPolygon/polygon-cli/issues/521
allows current commands that depend on `--rpc-url` and `--private-key` flags to be set via env vars `ETH_RPC_URL` and `PRIVATE_KEY` respectively.
# Testing
call any command that depends on `--rpc-url` or `--private-key` replacing the f... | diff --git a/cmd/cdk/cdk.go b/cmd/cdk/cdk.go
index 09f8b310e..69ca30f56 100644
--- a/cmd/cdk/cdk.go
+++ b/cmd/cdk/cdk.go
@@ -9,6 +9,7 @@ import (
"strings"
"time"
+ "github.com/0xPolygon/polygon-cli/cmd/flag_loader"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github... | 2 | 2 | 0 | [{"id": "G0", "claim": "Even though flag_loader.GetRpcUrlFlagValue(cmd, false) should not return an error, cmd/rpcfuzz should still check that the returned error is nil in case the implementation changes in the future.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"... | null |
0xPolygon__polygon-cli__571 | 0xPolygon/polygon-cli | 571 | defect | 2e52f4b43533834bf474d0a12a5bee69b3d4e76d | bede44cf8529728a2b1a5bd4677b70aca596b39d | Derivation Path refactor | close shttps://github.com/0xPolygon/devtools/issues/182
The topics below are applied to `polycli wallet` command.
- Changes the default value for `--addresses` from `10` to `1`
- When `--addresses` is `1`, the derivation path is the same as provided by `--path`
- When `--addresses` is greater than `1`, it will ... | diff --git a/cmd/wallet/usage.md b/cmd/wallet/usage.md
index 8fb69d196..de4c04b75 100644
--- a/cmd/wallet/usage.md
+++ b/cmd/wallet/usage.md
@@ -1,6 +1,6 @@
This command is meant to simplify the operations of creating
wallets. This command can take a seed phrase and spit out child
-accounts or generate new accmounts ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR should not change the default number of addresses generated by `polycli wallet generate` from 10 back to 1 without a good reason, because some use cases may rely on the old default of 10 accounts.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
0xPolygon__polygon-cli__672 | 0xPolygon/polygon-cli | 672 | defect | 347eb59ffe2a0bb733233fa21e6263fc42eed951 | 38b415095e5743653b2ef28482e8ac3635f2e256 | feat: Add a key file to the fund command | - Add a key file to the fund command that is compatible with the same key file used by the loadtest command. | diff --git a/cmd/fund/cmd.go b/cmd/fund/cmd.go
index dba30cbf6..d06edcb0d 100644
--- a/cmd/fund/cmd.go
+++ b/cmd/fund/cmd.go
@@ -31,13 +31,15 @@ type cmdFundParams struct {
FundingAmountInWei *big.Int
OutputFile *string
+ KeyFile *string
+
FunderAddress *string
}
var (
//go:embed usage.md
- usage ... | 5 | 3 | 0 | [{"id": "G0", "claim": "The else-branch comment in runFunding should say \"get addresses from private key\" instead of \"get addresses from key file\", since that branch handles the non-key-file cases.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
0xPolygon__polygon-cli__9 | 0xPolygon/polygon-cli | 9 | defect | ea250f085a12636b4f27212114440ce5fdf51fdf | c8197937a1fcccf18d02db609b5af5525bb865b2 | [DVT-293] feat: generate edge validators keys (wallet, consensus and network) | [DVT-293]
# Description
The Edge blockchain now relies on `edcsa` with the curve `secp256k1` since the [`v0.6.0`](https://github.com/0xPolygon/polygon-edge/releases/tag/v0.6.0) release, so these 2 changes were much needed in order to generate the validator keys with a script.
- Support different key types when ge... | diff --git a/cmd/nodekey.go b/cmd/nodekey.go
index 2e16140bc..89edd9eb5 100644
--- a/cmd/nodekey.go
+++ b/cmd/nodekey.go
@@ -47,6 +47,8 @@ import (
// pex - https://github.com/tendermint/tendermint/blob/f2a8f5e054cf99ebe246818bb6d71f41f9a30faa/types/node_id.go
//
+const KEYPAIR_BITE_SIZE = 256
+
var (
inputNodeK... | 7 | 7 | 3 | [{"id": "G0", "claim": "The constant `KEYPAIR_BITE_SIZE` should be renamed to UpperCamelCase and its name should reflect that the value counts bits rather than bytes (e.g. `KeypairBits`/`RSAKeypairBits`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
0xPolygon__polygon-cli__99 | 0xPolygon/polygon-cli | 99 | defect | 3820c52e587ad649c62657ab47ac25ae5cf1c78a | 9993708132531d2efe3f23ba2cd0917c11521c52 | DVT-639 upgrade to go 1.20 & enhance monitor scrolling and resizing | * PageDown / Down buttons to scroll to the block #0
* select blocks properly
* dynamic fetching of blocks as scroll
* dynamic page fitting of block rows
* upgrade go v1.20
* upgrade to edge v1.0.1
https://github.com/maticnetwork/polygon-cli/assets/11021924/6083473d-9206-4ba4-8edb-2f516cd5153a
| diff --git a/cmd/forge/forge.go b/cmd/forge/forge.go
index 8e8d75dee..3f457b00f 100644
--- a/cmd/forge/forge.go
+++ b/cmd/forge/forge.go
@@ -28,6 +28,7 @@ import (
"strings"
edgeblockchain "github.com/0xPolygon/polygon-edge/blockchain"
+ edgeleveldb "github.com/0xPolygon/polygon-edge/blockchain/storage/leveldb"
... | 5 | 3 | 2 | [{"id": "G0", "claim": "Keep a configurable batch-size cap on how many blocks are requested per batch, since some RPC providers limit batch requests.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Scrolling down in the monitor is very laggy (scrolling up... | null |
0xSpaceShard__starknet-devnet__396 | 0xSpaceShard/starknet-devnet | 396 | defect | bd9e76cd05fb183177298fac8da867199d2846d2 | 0667d3d914a97c1c459d7208bed8aa51e4d689b0 | Use Sepolia chain ID | ## Usage related changes
- Close #389
## Development related changes
- Close #400
## Checklist:
- [x] Applied formatting - `./scripts/format.sh`
- [x] No linter errors - `./scripts/clippy_check.sh`
- [x] No unused dependencies - `./scripts/check_unused_deps.sh`
- [x] Performed code self-review
- [x] ... | diff --git a/Cargo.lock b/Cargo.lock
index e2150570d..7bde131b2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -913,7 +913,7 @@ dependencies = [
"num-integer",
"num-traits 0.2.18",
"smol_str",
- "starknet-crypto 0.6.1",
+ "starknet-crypto 0.6.2",
"thiserror",
]
@@ -1104,7 +1104,7 @@ dependencies = [
"serde_js... | 2 | 1 | 0 | [{"id": "G0", "claim": "This could be the only remaining place where a transaction hash is hardcoded in a test, but it was unclear what to do with the test.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Although handled by another PR, the test ... | null |
0xSpaceShard__starknet-devnet__448 | 0xSpaceShard/starknet-devnet | 448 | defect | 81e9abbfaac422d3a3f317e7b545cdda4e675231 | 53f57a5c6bf4c7ed07cfd96cbcb62d8f8b501b46 | Issue 387, Set gas price | ## Usage related changes
- Closes #387
- Added new CLI params:
- `--gas-price-strk <STRK>`
- `--data-gas-price-strk <STRK>`
## Checklist:
- [ ] Checked the relevant parts of [development docs](https://github.com/0xSpaceShard/starknet-devnet-rs/?tab=readme-ov-file#development)
- [ ] Applied formattin... | diff --git a/README.md b/README.md
index 6789484c6..db2d6b2f3 100644
--- a/README.md
+++ b/README.md
@@ -453,8 +453,10 @@ To retrieve the current configuration of Devnet, send a GET request to `/config`
"account_contract_class_hash": "0x61dac032f228abef9c6626f995015233097ae253a7f72d68552db02f2971b8f",
"predeploye... | 2 | 2 | 2 | [{"id": "G0", "claim": "The README's example of the devnet configuration response still shows the old gas_price/data_gas_price fields and must be updated to reflect the PR's changes.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Clippy reports an... | null |
0xSpaceShard__starknet-devnet__488 | 0xSpaceShard/starknet-devnet | 488 | defect | bab781a018318df51adb20fc60716c8429ee89b0 | a4b55dce36929f3e60a8e2a4cab52c1e57da0a3d | Support disabling account impersonation | ## Usage related changes
User can specify to disable account impersonation by:
cli flag `--disable-account-impersonation`
env var `DISABLE_ACCOUNT_IMPERSONATION`
## Development related changes
- Added cli flag
- Added integration test
## Checklist:
- [ ] Checked out the [contribution guidelines](CONTR... | diff --git a/crates/starknet-devnet-core/src/starknet/mod.rs b/crates/starknet-devnet-core/src/starknet/mod.rs
index b9bf00d7b..705b5dbd2 100644
--- a/crates/starknet-devnet-core/src/starknet/mod.rs
+++ b/crates/starknet-devnet-core/src/starknet/mod.rs
@@ -1263,6 +1263,11 @@ impl Starknet {
msg: "Accou... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new paragraph in the account-impersonation documentation reads awkwardly and should be reworded (e.g. 'Users can disable account impersonation by starting Devnet with CLI flag `--disable-account-impersonation`...').", "category": "documentation", "verdict": "supported", "priority": "P2", "sc... | null |
0xSpaceShard__starknet-devnet__494 | 0xSpaceShard/starknet-devnet | 494 | defect | 867f447cc49131917a2800861018aa0c89268fc7 | f7e14ae23855db6320b424380acda369163f0e23 | Refactor Starknet test setup | ## Usage related changes
- None, hopefully
## Development related changes
- Replace the multiple `fn setup(acc_balance: Option<u128>) -> (Starknet, ContractAddress, ...)` definitions with:
- `fn setup_starknet_with_no_signature_check_account(acc_balance: u128)`
- `fn setup_starknet_with_no_signature_chec... | diff --git a/crates/starknet-devnet-core/src/starknet/add_declare_transaction.rs b/crates/starknet-devnet-core/src/starknet/add_declare_transaction.rs
index 38810a191..402d87d38 100644
--- a/crates/starknet-devnet-core/src/starknet/add_declare_transaction.rs
+++ b/crates/starknet-devnet-core/src/starknet/add_declare_tr... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comment 'doesn't require tx without validation' is misleading and should be rewritten to say the account doesn't perform actual signature validation on transactions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
0xSpaceShard__starknet-devnet__573 | 0xSpaceShard/starknet-devnet | 573 | defect | 0a73e4331a246a79f88c21c0364e62c82966e7a6 | 5e794d980ba3525db4a49b9fd8fa1da9856eef17 | Refactoring of unwraps and expects | ## Usage related changes
None
## Development related changes
closes #567
Remove some expects in the code, or refactor them to use match statement
Added linters to ./scripts/clippy_check.sh
## Checklist:
- [ ] Checked out the [contribution guidelines](CONTRIBUTING.md)
- [ ] Applied formatting - `./scripts... | diff --git a/.clippy.toml b/.clippy.toml
index 154626ef4..0358cdb50 100644
--- a/.clippy.toml
+++ b/.clippy.toml
@@ -1 +1,2 @@
allow-unwrap-in-tests = true
+allow-expect-in-tests = true
diff --git a/crates/starknet-devnet-core/src/account.rs b/crates/starknet-devnet-core/src/account.rs
index 1abcf9012..e2d9bb8a0 10064... | 5 | 3 | 0 | [{"id": "G0", "claim": "ethereum_ref can be simplified to `self.ethereum.as_ref().ok_or(Error::MessagingError(MessagingError::NotConfigured))` instead of the if-let/else block.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ethereum_mut can be simplified... | null |
0xSpaceShard__starknet-devnet__597 | 0xSpaceShard/starknet-devnet | 597 | defect | dd14525b0b3fb71231c869085cc10c456ae59390 | fdd7652bd4d6ca738c9a6315a6d1150f14eebaf8 | Fix L1-L2 message order | ## Usage related changes
- Close #586
## Development related changes
- Use `BTreeMap` instead of `HashMap`
- Simplify code to reduce line count in `ethereum.rs`
- Add `spawn_with_additional_args` to `BackgroundAnvil`.
- Fix wrong messages in `BackgroundAnvil` method errors.
- Add utility method `felt_to_u... | diff --git a/crates/starknet-devnet-core/src/messaging/ethereum.rs b/crates/starknet-devnet-core/src/messaging/ethereum.rs
index 0b4ed8100..09f64d0d6 100644
--- a/crates/starknet-devnet-core/src/messaging/ethereum.rs
+++ b/crates/starknet-devnet-core/src/messaging/ethereum.rs
@@ -1,5 +1,5 @@
#
- Restore the simulation behavior Devnet had in v0.0.4
- `is_query_only` using `>=` instead of `>` when comparing with `QUERY_VERSION_OFFSET` (`2**128`)
- Unrelated to... | diff --git a/crates/starknet-devnet-core/src/starknet/add_declare_transaction.rs b/crates/starknet-devnet-core/src/starknet/add_declare_transaction.rs
index a368e2ed6..394f1d7c3 100644
--- a/crates/starknet-devnet-core/src/starknet/add_declare_transaction.rs
+++ b/crates/starknet-devnet-core/src/starknet/add_declare_tr... | 3 | 2 | 0 | [{"id": "G0", "claim": "The commented-out line `// let expected_version = Felt::ONE;` that the pull request added to the simulation test appears to be a leftover and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `only... | null |
0xSpaceShard__starknet-devnet__634 | 0xSpaceShard/starknet-devnet | 634 | defect | 6f86cf2b64a2ce6762149e89dd2b50129402457d | 38dfed7808fbfa68a264b74c329fae9a37018b70 | Add WebSocket RPC methods: subscribeNewHeads, unsubscribe | ## Usage related changes
- Introduce support for `starknet_subscribeNewHeads` and `starknet_unsubscribe`.
- Other methods using `todo!`.
- Partially address #613
- Address TODO in `main.rs` which prevented SIGINT from killing Devnet instantly in block-on-interval mode.
- Remove general RPC support, i.e. metho... | diff --git a/crates/starknet-devnet-core/src/blocks/mod.rs b/crates/starknet-devnet-core/src/blocks/mod.rs
index 41e0b6795..3c033ad52 100644
--- a/crates/starknet-devnet-core/src/blocks/mod.rs
+++ b/crates/starknet-devnet-core/src/blocks/mod.rs
@@ -266,6 +266,14 @@ impl StarknetBlock {
}
}
+ pub fn c... | 7 | 6 | 2 | [{"id": "G0", "claim": "The block-creation-on-interval code should propagate the request error as the previous implementation did, instead of only logging it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The allows_method call in on_websocket_rpc_... | null |
0xSpaceShard__starknet-devnet__638 | 0xSpaceShard/starknet-devnet | 638 | defect | 6fbc80c5360ded33cbd59bdf4c3883ed645a1cef | 6d4b4b68125291f17a7c0539fc8dc0e5ef1f85cd | Fix publishing to crates.io; Release 0.2.2 | ## Development related changes
Move some files from `contracts` folder.
## Checklist:
- [ ] Checked out the [contribution guidelines](CONTRIBUTING.md)
- [ ] Applied formatting - `./scripts/format.sh`
- [ ] No linter errors - `./scripts/clippy_check.sh`
- [ ] No unused dependencies - `./scripts/check_unused... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index e7753f4e9..375551594 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -59,31 +59,41 @@ jobs:
- run:
name: Verify lockfile
command: cargo update -w --locked
- - run:
- name: Build
- command: ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request comments out the build, clippy, format and code-spell check steps in the CircleCI workflow, and the reviewer asks to uncomment them.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new publishing dry-run check... | null |
0xSpaceShard__starknet-devnet__672 | 0xSpaceShard/starknet-devnet | 672 | defect | 8f758f8ed1d8a19d1fe1e40793f1fc284bf9409d | fc5393a18455ea897bfa867ae08e925ef289e9f3 | Fix port discovery loop to address flaky tests. Eliminate zombie processes. | ## Usage related changes
Hopefully, none.
## Development related changes
- Close #673
- In `BackgroundDevnet::drop`: `wait` after `kill`.
- In `get_acquired_port`: prevent exiting if ports not available; only exit if max retries reached.
- This is the thing that most likely fixed the flakiness.
- Since t... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index e1dfffb8b..2a16d8d77 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -82,8 +82,8 @@ jobs:
name: Cleanup old cache
command: .circleci/scripts/cache.sh cleanup
- run:
- name: Tests
- command: carg... | 1 | 1 | 1 | [{"id": "G0", "claim": "If get_acquired_port returns an error the spawned devnet process will not be killed, leaving a zombie process, and the same applies to wait_for_successful_response.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
0xSpaceShard__starknet-devnet__851 | 0xSpaceShard/starknet-devnet | 851 | defect | f3fed84fe67681d5e7bdb66743a60da8170decad | f9fd32b0423ba0722e85bbc4378b2d3e41f935f0 | Improves RPC request deserialisation error messaging | ## Usage related changes
Improves RPC request deserialisation handling, brings it closer to the client implementations.
## Development related changes
N/A
## Checklist:
I still need to add tests.
- [x] Checked out the [contribution guidelines](https://github.com/0xSpaceShard/starknet-devnet/blob/main/... | diff --git a/crates/starknet-devnet-server/src/api/json_rpc_handler.rs b/crates/starknet-devnet-server/src/api/json_rpc_handler.rs
index 96dde810f..38403c4a6 100644
--- a/crates/starknet-devnet-server/src/api/json_rpc_handler.rs
+++ b/crates/starknet-devnet-server/src/api/json_rpc_handler.rs
@@ -12,7 +12,6 @@ use stark... | 8 | 2 | 0 | [{"id": "G0", "claim": "Use the already-imported json macro directly instead of the fully qualified serde_json::json! call in rpc_core/error.rs, also at the invalid_request_with_reason site (L53).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "T... | null |
0xSpaceShard__starknet-hardhat-plugin__179 | 0xSpaceShard/starknet-hardhat-plugin | 179 | defect | c82bacd5b462ea031fb75b023af6180e97f3007c | 4af63cdfc6fb85f2632bd084a574314d2d3b4035 | Integrated devnet logger | ## Usage related changes
<!-- How the changes from this PR affect users. -->
- Users can specify where `integrated-devnet` output should be logged. This can be done by modifying `stdout` and `stderr` options in `hardhat.config.ts` file under `networks[integratedDevnet]`
- Closes https://github.com/Shard-Labs/s... | diff --git a/README.md b/README.md
index 6a20e4e0..7a6ce289 100644
--- a/README.md
+++ b/README.md
@@ -523,9 +523,10 @@ module.exports = {
By defining/modifying `networks["integratedDevnet"]` in your hardhat config file, you can specify:
-- the version of Devnet to be used for the underlying Devnet Docker image
... | 9 | 9 | 2 | [{"id": "G0", "claim": "The left-hand side of `this.stdout && this.stdout === \"STDOUT\"` (and the STDERR equivalent) is redundant and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The file/dir existence checks and resolution... | null |
0xSpaceShard__starknet-hardhat-plugin__181 | 0xSpaceShard/starknet-hardhat-plugin | 181 | defect | 2ad1054ff0fc6011805852bec7dd99a0351d3eee | ee2c773a0445c63c82ab06eb0af61ef1d8ccb08b | Starknet plugin version | ## Usage related changes
<!-- How the changes from this PR affect users. -->
- Plugin version can be printed using task `npx hardhat starknet-plugin-version`
- Closes #163
## Development related changes
<!-- How these changes affect the developers of this project - e.g. changes in testing or CI/CD. -->
... | diff --git a/README.md b/README.md
index c07c437f..e5763941 100644
--- a/README.md
+++ b/README.md
@@ -174,6 +174,14 @@ npx hardhat starknet-estimate-fee [--starknet-network <NAME>] [--gateway-url <UR
Estimates the gas fee of a function execution.
+### `starknet-plugin-version`
+
+Prints the version of the plugin.... | 2 | 2 | 1 | [{"id": "G0", "claim": "Consider reading the plugin version the way the linked StackOverflow answer describes (import/require of package.json) instead of manually JSON.parsing the file read from disk.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.