Skip to content

Commit

Permalink
feat(aggregator): support two operator addresses in sender and aggreg…
Browse files Browse the repository at this point in the history
…ator (#1201)

## What ❔

Adds optional ability to send commit transactions from a separate
operator address on L1.

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.
- [ ] Linkcheck has been run via `zk linkcheck`.

---------

Co-authored-by: koloz <zach.kolodny@gmail.com>
  • Loading branch information
montekki and koloz193 authored Feb 26, 2024
1 parent 5aa6f6c commit 7be56e5
Show file tree
Hide file tree
Showing 19 changed files with 337 additions and 270 deletions.
7 changes: 7 additions & 0 deletions core/lib/config/src/configs/eth_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ impl SenderConfig {
.ok()
.map(|pk| pk.parse().unwrap())
}

// Don't load blobs private key, if it's not required
pub fn private_key_blobs(&self) -> Option<H256> {
std::env::var("ETH_SENDER_SENDER_OPERATOR_BLOBS_PRIVATE_KEY")
.ok()
.map(|pk| pk.parse().unwrap())
}
}

#[derive(Debug, Deserialize, Copy, Clone, PartialEq)]
Expand Down

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

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

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

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

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE eth_txs DROP COLUMN from_addr;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE eth_txs ADD COLUMN from_addr BYTEA;
Loading

0 comments on commit 7be56e5

Please sign in to comment.