Skip to content

Commit 53bf6bf

Browse files
authored
Merge branch 'dev' into e2e-staking-rewards
2 parents 6377aa8 + 56816d7 commit 53bf6bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1286
-1111
lines changed

RELEASES.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,95 @@
11
# Release Notes
22

3+
## [v1.10.10](https://github.com/ava-labs/avalanchego/releases/tag/v1.10.10)
4+
5+
This version is backwards compatible to [v1.10.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.10.0). It is optional, but encouraged.
6+
7+
The plugin version is unchanged at `28` and compatible with version `v1.10.9`.
8+
9+
### APIs
10+
11+
- Added `height` to the output of `platform.getCurrentSupply`
12+
13+
### Configs
14+
15+
- Added `proposerNumHistoricalBlocks` to subnet configs
16+
17+
### Fixes
18+
19+
- Fixed handling of `SIGTERM` signals in plugin processes prior to receiving a `Shutdown` message
20+
- Fixed range proof commitment of empty proofs
21+
22+
### What's Changed
23+
24+
- e2e: Save network data for each test run as an uploaded artifact by @marun in https://github.com/ava-labs/avalanchego/pull/1856
25+
- e2e: Ensure interchain workflow coverage for X-Chain and C-Chain by @marun in https://github.com/ava-labs/avalanchego/pull/1871
26+
- MerkleDB Adjust New View function(s) by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/1927
27+
- e2e: Migrate duplicate node id test from kurtosis by @marun in https://github.com/ava-labs/avalanchego/pull/1573
28+
- Add tracing levels to merkledb by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1933
29+
- [x/merkledb] Add Configuration for `RootGenConcurrency` by @patrick-ogrady in https://github.com/ava-labs/avalanchego/pull/1936
30+
- e2e: Ensure testnet network dir is archived on failed test run by @marun in https://github.com/ava-labs/avalanchego/pull/1930
31+
- Merkle db cleanup view creation by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/1934
32+
- Add async DB deletion helper by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1931
33+
- Implement SDK handler to drop messages from non-validators by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1917
34+
- Support proposervm historical block deletion by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1929
35+
- Remove thread pool by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1940
36+
- Merkledb split node storage into value and intermediate by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/1918
37+
- `merkledb` -- remove unneeded codec test helper by @danlaine in https://github.com/ava-labs/avalanchego/pull/1943
38+
- `merkledb` -- add codec test and move helper by @danlaine in https://github.com/ava-labs/avalanchego/pull/1944
39+
- Add throttler implementation to SDK by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1905
40+
- Add Throttled Handler implementation to SDK by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1906
41+
- Change merkledb caches to be size based by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1947
42+
- Rename `node.marshal` to `node.bytes` by @danlaine in https://github.com/ava-labs/avalanchego/pull/1951
43+
- e2e: Switch to a default network node count of 2 by @marun in https://github.com/ava-labs/avalanchego/pull/1928
44+
- MerkleDB Improve Node Size Calculation by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/1950
45+
- `merkledb` -- remove unneeded return values by @danlaine in https://github.com/ava-labs/avalanchego/pull/1959
46+
- `sync` -- reduce test sizes by @danlaine in https://github.com/ava-labs/avalanchego/pull/1962
47+
- `merkledb` -- limit number of goroutines calculating node IDs by @danlaine in https://github.com/ava-labs/avalanchego/pull/1960
48+
- Add gossip package to p2p SDK by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1958
49+
- Improve state sync logging by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1955
50+
- Update golang to 1.20.8 by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1826
51+
- Use odd-numbered request ids for SDK by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1975
52+
- update iterator invariant by @danlaine in https://github.com/ava-labs/avalanchego/pull/1978
53+
- Document common usage of requestIDs for snow senders by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1981
54+
- e2e: Diagnose and fix flakes by @marun in https://github.com/ava-labs/avalanchego/pull/1941
55+
- `merkledb` -- `db_test.go` cleanup by @danlaine in https://github.com/ava-labs/avalanchego/pull/1954
56+
- `merkledb` -- make config fields uints by @danlaine in https://github.com/ava-labs/avalanchego/pull/1963
57+
- Only gracefully exit rpcchainvm server after Shutdown by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1988
58+
- Add contexts to SDK callbacks by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1977
59+
- Change max response size to target response size by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1995
60+
- Add sdk gossip handler metrics by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1997
61+
- Add p2p SDK Router metrics by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/2000
62+
- Merkledb Attempt to reduce test runtime by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/1990
63+
- longer timeout on windows UT by @danlaine in https://github.com/ava-labs/avalanchego/pull/2001
64+
- `sync` -- log tweaks by @danlaine in https://github.com/ava-labs/avalanchego/pull/2008
65+
- Add Validator Gossiper by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/2015
66+
- database: comment that Get returns ErrNotFound if key is not present by @aaronbuchwald in https://github.com/ava-labs/avalanchego/pull/2018
67+
- Return `height` from `GetCurrentSupply` by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2022
68+
- simplify platformvm `GetHeight` function by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2023
69+
- Merkle db fix range proof commit bug by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/2019
70+
- Add `bag.Of` helper by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2027
71+
- Cleanup early poll termination logic by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2029
72+
- fix typo by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2030
73+
- Merkle db intermediate node key compression by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/1987
74+
- Improve RPC Chain version mismatch error message by @martineckardt in https://github.com/ava-labs/avalanchego/pull/2021
75+
- Move subnet owner lookup to platformvm state by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2024
76+
- Fix fuzz tests; add iterator fuzz test by @danlaine in https://github.com/ava-labs/avalanchego/pull/1991
77+
- Refactor subnet validator primary network requirements by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2014
78+
- Rename events to event by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1973
79+
- Add function to initialize SampleableSet by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/2017
80+
- add `IsCortinaActivated` helper by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2013
81+
- Fix P-chain Import by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2035
82+
- Rename avm/blocks package to avm/block by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1970
83+
- Merkledb Update rangeproof proto to be consistent with changeproof proto by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/2040
84+
- `merkledb` -- encode lengths as uvarints by @danlaine in https://github.com/ava-labs/avalanchego/pull/2039
85+
- MerkleDB Remove GetNodeFromParent by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/2041
86+
87+
### New Contributors
88+
89+
- @martineckardt made their first contribution in https://github.com/ava-labs/avalanchego/pull/2021
90+
91+
**Full Changelog**: https://github.com/ava-labs/avalanchego/compare/v1.10.9...v1.10.10
92+
393
## [v1.10.9](https://github.com/ava-labs/avalanchego/releases/tag/v1.10.9)
494

595
This version is backwards compatible to [v1.10.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.10.0). It is optional, but encouraged.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/Microsoft/go-winio v0.5.2
1313
github.com/NYTimes/gziphandler v1.1.1
1414
github.com/ava-labs/avalanche-network-runner-sdk v0.3.0
15-
github.com/ava-labs/coreth v0.12.5-rc.3
15+
github.com/ava-labs/coreth v0.12.5-rc.6
1616
github.com/ava-labs/ledger-avalanche/go v0.0.0-20230105152938-00a24d05a8c7
1717
github.com/btcsuite/btcd/btcutil v1.1.3
1818
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kd
6363
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
6464
github.com/ava-labs/avalanche-network-runner-sdk v0.3.0 h1:TVi9JEdKNU/RevYZ9PyW4pULbEdS+KQDA9Ki2DUvuAs=
6565
github.com/ava-labs/avalanche-network-runner-sdk v0.3.0/go.mod h1:SgKJvtqvgo/Bl/c8fxEHCLaSxEbzimYfBopcfrajxQk=
66-
github.com/ava-labs/coreth v0.12.5-rc.3 h1:cpmC+fSZMsO4gaFWqXHzAHrJACf05u5HPAYmwh7nmkU=
67-
github.com/ava-labs/coreth v0.12.5-rc.3/go.mod h1:HI+jTIflnDFBd0bledgkgid1Uurwr8q1h7zb3LsFsSo=
66+
github.com/ava-labs/coreth v0.12.5-rc.6 h1:OajGUyKkO5Q82XSuMa8T5UD6QywtCHUiZ4Tv3RFmRBU=
67+
github.com/ava-labs/coreth v0.12.5-rc.6/go.mod h1:s5wVyy+5UCCk2m0Tq3jVmy0UqOpKBDYqRE13gInCJVs=
6868
github.com/ava-labs/ledger-avalanche/go v0.0.0-20230105152938-00a24d05a8c7 h1:EdxD90j5sClfL5Ngpz2TlnbnkNYdFPDXa0jDOjam65c=
6969
github.com/ava-labs/ledger-avalanche/go v0.0.0-20230105152938-00a24d05a8c7/go.mod h1:XhiXSrh90sHUbkERzaxEftCmUz53eCijshDLZ4fByVM=
7070
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=

indexer/examples/p-chain/main.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import (
1010
"time"
1111

1212
"github.com/ava-labs/avalanchego/indexer"
13-
"github.com/ava-labs/avalanchego/vms/platformvm/blocks"
14-
"github.com/ava-labs/avalanchego/vms/proposervm/block"
1513
"github.com/ava-labs/avalanchego/wallet/subnet/primary"
14+
15+
platformvmblock "github.com/ava-labs/avalanchego/vms/platformvm/block"
16+
proposervmblock "github.com/ava-labs/avalanchego/vms/proposervm/block"
1617
)
1718

1819
// This example program continuously polls for the next P-Chain block
@@ -33,12 +34,12 @@ func main() {
3334
}
3435

3536
platformvmBlockBytes := container.Bytes
36-
proposerVMBlock, err := block.Parse(container.Bytes)
37+
proposerVMBlock, err := proposervmblock.Parse(container.Bytes)
3738
if err == nil {
3839
platformvmBlockBytes = proposerVMBlock.Block()
3940
}
4041

41-
platformvmBlock, err := blocks.Parse(blocks.Codec, platformvmBlockBytes)
42+
platformvmBlock, err := platformvmblock.Parse(platformvmblock.Codec, platformvmBlockBytes)
4243
if err != nil {
4344
log.Fatalf("failed to parse platformvm block: %s\n", err)
4445
}

0 commit comments

Comments
 (0)