Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix pending batches 404 #3

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
34f3110
chore: remove extra call to `get_l1_batch_state_root` (#176)
zhiqiangxu Oct 19, 2023
246b5a0
fix: Fix `TxStage` string representation (#255)
slowli Oct 19, 2023
f4ffcb9
chore: Mainnet protocol upgrade 16 data (#241)
perekopskiy Oct 19, 2023
a135127
refactor(en): Refactor sync action queue in EN (#243)
slowli Oct 19, 2023
d250294
feat(eth-watch): process governor upgrades (#247)
perekopskiy Oct 19, 2023
2c930b2
feat(reorg_detector): compare miniblock hashes for reorg detection (#…
montekki Oct 19, 2023
feb8a6c
fix: fix typos (#226)
vuittont60 Oct 19, 2023
44f7179
feat: Remove fee_ticker and token_trading_volume fetcher modules (#262)
popzxc Oct 20, 2023
9e20703
feat(merkle tree): Snapshot recovery for Merkle tree (#163)
slowli Oct 20, 2023
4a5c54c
fix(crypto): update snark-vk to be used in server and update args for…
akash-chandrakar Oct 20, 2023
73a1e8f
fix: fix broken links (#267)
ylmin Oct 20, 2023
ab08009
fix pending batches 404
igamigo Oct 20, 2023
de8d156
nl
igamigo Oct 20, 2023
5010691
chore: Update Security link in README.MD (#282)
oxJean Oct 22, 2023
9dbb5b1
fix: fix documentation link (#280)
moonchrisir Oct 23, 2023
b8a5e6d
chore: Update docs (#283)
Dollyerls Oct 23, 2023
33e3192
chore: updated era-zkevm_opcode_defs dependency (#287)
pompon0 Oct 23, 2023
8928a41
fix(witness-generator): Witness generator oracle with cached storage …
perekopskiy Oct 23, 2023
7b23ab0
fix(db): Fix write stalls in RocksDB (again) (#265)
slowli Oct 23, 2023
0e5eefc
test(en): Test sync actions produced by main node fetcher (#268)
slowli Oct 23, 2023
e816f7c
Merge branch 'main' into fix-pending-batches-404
igamigo Oct 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 42 additions & 46 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The following questions will be answered by the following resources:

## Policies

- [Security policy](.github/SECURITY.md)
- [Security policy](SECURITY.md)
- [Contribution policy](CONTRIBUTING.md)

## License
Expand Down
14 changes: 14 additions & 0 deletions core/bin/external_node/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ pub struct OptionalENConfig {
#[serde(default = "OptionalENConfig::default_merkle_tree_block_cache_size_mb")]
merkle_tree_block_cache_size_mb: usize,

/// Byte capacity of memtables (recent, non-persisted changes to RocksDB). Setting this to a reasonably
/// large value (order of 512 MiB) is helpful for large DBs that experience write stalls.
#[serde(default = "OptionalENConfig::default_merkle_tree_memtable_capacity_mb")]
merkle_tree_memtable_capacity_mb: usize,

// Other config settings
/// Port on which the Prometheus exporter server is listening.
pub prometheus_port: Option<u16>,
Expand Down Expand Up @@ -274,6 +279,10 @@ impl OptionalENConfig {
128
}

const fn default_merkle_tree_memtable_capacity_mb() -> usize {
256
}

const fn default_fee_history_limit() -> u64 {
1_024
}
Expand Down Expand Up @@ -318,6 +327,11 @@ impl OptionalENConfig {
self.merkle_tree_block_cache_size_mb * BYTES_IN_MEGABYTE
}

/// Returns the memtable capacity for Merkle tree in bytes.
pub fn merkle_tree_memtable_capacity(&self) -> usize {
self.merkle_tree_memtable_capacity_mb * BYTES_IN_MEGABYTE
}

pub fn api_namespaces(&self) -> Vec<Namespace> {
self.api_namespaces
.clone()
Expand Down
Loading