Skip to content

Commit eac734f

Browse files
author
Julian Ventura
committed
Merge branch 'staging' into fix/aggregator-recover-lost-batches
2 parents a44b1a7 + 439a6a0 commit eac734f

File tree

10 files changed

+95
-68
lines changed

10 files changed

+95
-68
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OS := $(shell uname -s)
66
CONFIG_FILE?=config-files/config.yaml
77
AGG_CONFIG_FILE?=config-files/config-aggregator.yaml
88

9-
OPERATOR_VERSION=v0.10.3
9+
OPERATOR_VERSION=v0.11.2
1010

1111
ifeq ($(OS),Linux)
1212
BUILD_ALL_FFI = $(MAKE) build_all_ffi_linux

aggregator/pkg/server.go

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (agg *Aggregator) ProcessOperatorSignedTaskResponseV2(signedTaskResponse *t
8686

8787
agg.logger.Info("Starting bls signature process")
8888
go func() {
89-
err := agg.ProcessNewSignature(
89+
err := agg.blsAggregationService.ProcessNewSignature(
9090
context.Background(), taskIndex, signedTaskResponse.BatchIdentifierHash,
9191
&signedTaskResponse.BlsSignature, signedTaskResponse.OperatorId,
9292
)
@@ -123,34 +123,6 @@ func (agg *Aggregator) ServerRunning(_ *struct{}, reply *int64) error {
123123
return nil
124124
}
125125

126-
// |---RETRYABLE---|
127-
128-
/*
129-
- Errors:
130-
Permanent:
131-
- SignatureVerificationError: Verification of the sigature within the BLS Aggregation Service failed. (https://github.com/Layr-Labs/eigensdk-go/blob/dev/services/bls_aggregation/blsagg.go#L42).
132-
Transient:
133-
- All others.
134-
- Retry times (3 retries): 12 sec (1 Blocks), 24 sec (2 Blocks), 48 sec (4 Blocks)
135-
- NOTE: TaskNotFound errors from the BLS Aggregation service are Transient errors as block reorg's may lead to these errors being thrown.
136-
*/
137-
func (agg *Aggregator) ProcessNewSignature(ctx context.Context, taskIndex uint32, taskResponse interface{}, blsSignature *bls.Signature, operatorId eigentypes.Bytes32) error {
138-
processNewSignature_func := func() error {
139-
err := agg.blsAggregationService.ProcessNewSignature(
140-
ctx, taskIndex, taskResponse,
141-
blsSignature, operatorId,
142-
)
143-
if err != nil {
144-
if strings.Contains(err.Error(), "Failed to verify signature") {
145-
err = retry.PermanentError{Inner: err}
146-
}
147-
}
148-
return err
149-
}
150-
151-
return retry.Retry(processNewSignature_func, retry.MinDelayChain, retry.RetryFactor, retry.NumRetries, retry.MaxIntervalChain, retry.MaxElapsedTime)
152-
}
153-
154126
func (agg *Aggregator) GetTaskIndex(batchIdentifierHash [32]byte) (uint32, error) {
155127
getTaskIndex_func := func() (uint32, error) {
156128
agg.taskMutex.Lock()

batcher/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

batcher/aligned/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aligned"
3-
version = "0.10.3"
3+
version = "0.11.2"
44
edition = "2021"
55

66
[dependencies]

contracts/script/output/holesky/alignedlayer_deployment_output.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"addresses": {
33
"alignedLayerProxyAdmin": "0x3eb924d928c138898FC089328f840105969bD6a0",
44
"alignedLayerServiceManager": "0x58F280BeBE9B34c9939C3C39e0890C81f163B623",
5-
"alignedLayerServiceManagerImplementation": "0x24F764c18609D5e92fC5646Ff0725280144E644b",
5+
"alignedLayerServiceManagerImplementation": "0x48d70037cC01c31039d476CbbbAe2Aa36F86Ef16",
66
"blsApkRegistry": "0xD0A725d82649f9e4155D7A60B638Fe33b3F25e3b",
77
"blsApkRegistryImplementation": "0xB05BB98a966F58aDAB8dF58350b77fF2131A3b87",
88
"indexRegistry": "0x4A7DE0a9fBBAa4fF0270d31852B363592F68B81F",
@@ -14,7 +14,8 @@
1414
"stakeRegistry": "0x51462D5511563A0F97Bb3Ce5475E1c3905b83F4b",
1515
"stakeRegistryImplementation": "0xd1555Be14931C061E06D3CE1D1Daadc1B3c6F8c7",
1616
"batcherPaymentService": "0x815aeCA64a974297942D2Bbf034ABEe22a38A003",
17-
"batcherPaymentServiceImplementation": "0x07802Aa18a16E6F4d1a3411657a0f6b0a9Cb8Ea1"
17+
"batcherPaymentServiceImplementation": "0x07802Aa18a16E6F4d1a3411657a0f6b0a9Cb8Ea1",
18+
"pauserRegistry": "0x0CBc10A1142465B2042f3804107A7283044dC6eD"
1819
},
1920
"chainInfo": {
2021
"chainId": 17000,
@@ -26,6 +27,7 @@
2627
"alignedLayerEjector": "0x97aEC5F28181abe5d2aD40dBe7FbaEe014529b7D",
2728
"alignedLayerOwner": "0x97aEC5F28181abe5d2aD40dBe7FbaEe014529b7D",
2829
"alignedLayerUpgrader": "0x97aEC5F28181abe5d2aD40dBe7FbaEe014529b7D",
29-
"pauserRegistry": "0x85Ef7299F8311B25642679edBF02B62FA2212F06"
30+
"pauserRegistry": "0x85Ef7299F8311B25642679edBF02B62FA2212F06",
31+
"alignedLayerPauser": "0x97aEC5F28181abe5d2aD40dBe7FbaEe014529b7D"
3032
}
3133
}

contracts/script/output/holesky/alignedlayer_deployment_output.stage.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"stakeRegistryImplementation": "0x52A9e264b98fe2d53805937Bc094a981E7eB6BeE",
1616
"batcherPaymentService": "0x7577Ec4ccC1E6C529162ec8019A49C13F6DAd98b",
1717
"batcherPaymentServiceImplementation": "0x230FF8F073C188732856990b070485FD1A9b1039"
18+
"pauserRegistry": "0xBCd09a605906a13F917230F82BdAC15B778A5B03"
1819
},
1920
"chainInfo": {
2021
"chainId": 17000,
@@ -25,7 +26,7 @@
2526
"alignedLayerEjector": "0xE3C695b73dbe27106aF4530b152de3e57456B385",
2627
"alignedLayerOwner": "0xE3C695b73dbe27106aF4530b152de3e57456B385",
2728
"alignedLayerUpgrader": "0xE3C695b73dbe27106aF4530b152de3e57456B385",
28-
"pauserRegistry": "0x85Ef7299F8311B25642679edBF02B62FA2212F06",
29-
"alignedLayerAggregator": "0x2855F89C56d3C94e98F61A3Dea5E9Ca0AA2FA946"
29+
"alignedLayerAggregator": "0x2855F89C56d3C94e98F61A3Dea5E9Ca0AA2FA946",
30+
"alignedLayerPauser": "0xE3C695b73dbe27106aF4530b152de3e57456B385"
3031
}
3132
}

docs/3_guides/1_SDK_how_to.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To use this SDK in your Rust project, add the following to your `Cargo.toml`:
1212

1313
```toml
1414
[dependencies]
15-
aligned-sdk = { git = "https://github.com/yetanotherco/aligned_layer", tag="v0.10.3" }
15+
aligned-sdk = { git = "https://github.com/yetanotherco/aligned_layer", tag="v0.11.2" }
1616
```
1717

1818
To find the latest release tag go to [releases](https://github.com/yetanotherco/aligned_layer/releases) and copy the

docs/operator_guides/0_running_an_operator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Register as an Aligned operator in testnet
22

33
> **CURRENT VERSION:**
4-
> Aligned Operator [v0.10.3](https://github.com/yetanotherco/aligned_layer/releases/tag/v0.10.3)
4+
> Aligned Operator [v0.11.2](https://github.com/yetanotherco/aligned_layer/releases/tag/v0.11.2)
55
66
> **IMPORTANT:**
77
> You must be [whitelisted](https://docs.google.com/forms/d/e/1FAIpQLSdH9sgfTz4v33lAvwj6BvYJGAeIshQia3FXz36PFfF-WQAWEQ/viewform) to become an Aligned operator.
@@ -26,7 +26,7 @@ Minimum hardware requirements:
2626
To start with, clone the Aligned repository and move inside it
2727

2828
```bash
29-
git clone https://github.com/yetanotherco/aligned_layer.git --branch v0.10.3
29+
git clone https://github.com/yetanotherco/aligned_layer.git --branch v0.11.2
3030
cd aligned_layer
3131
```
3232

0 commit comments

Comments
 (0)