Skip to content

Latest commit

 

History

History
299 lines (228 loc) · 15.4 KB

CHANGELOG.md

File metadata and controls

299 lines (228 loc) · 15.4 KB

Changelog

The format is based on Keep a Changelog.

[v1.5.1] - 2024-07-03

This is a bug-fix release that changes internal trimming data structure from BTreeMap to MinHeap to support voters with the same weight.

[Fixed]

  • fix: feasibility check when voters have the same staked amount (#856)

[Changed]

  • chore(deps): bump tokio from 1.37.0 to 1.38.0 (#845)
  • chore(deps): bump regex from 1.10.4 to 1.10.5 (#844)
  • chore(deps): bump anyhow from 1.0.82 to 1.0.86 (#842)
  • chore(deps): bump hyper from 0.14.28 to 0.14.29 (#846)
  • chore(deps): bump serde_json from 1.0.117 to 1.0.119 (#857)
  • chore(deps): bump frame-support from 34.0.0 to 35.0.0 (#853)
  • chore(deps): bump sp-runtime from 37.0.0 to 38.0.0 (#855)
  • chore(deps): bump clap from 4.5.4 to 4.5.7 (#850)
  • chore: update polkadot-sdk deps (#861)

Compatibility

Tested against:

  • Westend v1,014,000
  • Kusama v1,002,006
  • Polkadot v1,002,006

[v1.5.0] - 2024-06-07

This release updates subxt to support the signed extension CheckMetadataHash

[Changed]

  • chore(deps): update polkadot-sdk dependencies (#840)
  • chore(deps): bump subxt to v0.37.0 (#836)
  • chore(deps): bump prometheus from 0.13.3 to 0.13.4 (#825)
  • chore(deps): bump thiserror from 1.0.58 to 1.0.59 (#822)
  • chore(deps): bump h2 from 0.3.24 to 0.3.26 in /staking-miner-playground (#804)
  • chore(deps): bump sp-storage from 20.0.0 to 21.0.0 (#812)
  • chore(deps): bump scale-info from 2.11.1 to 2.11.2 (#814)
  • chore(deps): bump serde from 1.0.197 to 1.0.198 (#818)
  • chore(deps): bump rustls from 0.21.10 to 0.21.11 (#817)
  • chore(deps): bump anyhow from 1.0.81 to 1.0.82 (#811)

Compatibility

Tested against:

  • Westend v1010 and Westend master (rev d783ca9d9bf)

[v1.4.0]

This is release to support that the SignedPhase and UnsignedPhase has been removed from the metadata. See (#803) for further information.

Compatibility

Tested against:

  • Westend v1010

[v1.3.1] - 2023-12-27

The main changes of this release are as follows:

  • Change the binary name to polkadot-staking-miner to publish on crates.io.
  • Bump rust MSRV to 1.74
  • Change submit_signed_solution extrinsic to be mortal
  • A runtime upgrade bug was fixed in this release.

Runtime upgrade bug fixed.

Recently, we noticed that it can be possible that the runtime upgrades won't upgrade the metadata because the actual runtime upgrade is applied to the block after state_subscribeRuntimeVersion emits an event.

For that reason, the polkadot-staking-miner now subscribes to system().last_runtime_upgrade() instead to fix that.

[Changed]

  • refactor: make solution extrinsic mortal (#728)
  • rename project to polkadot-staking-miner (#717)

[v1.3.0] - 2023-12-15 [YANKED]

The change to subxt-signer broke previous behaviour.

[v1.2.0] - 2023-11-23

The major changes of this release:

  • Trimming has been reworked such that the staking-miner "pre-trims" the solution instead relying on the remote node to perform the trimming.
  • The default port number in the URI can now be omitted.
  • All dependencies are fetched from crates.io and the staking-miner can now be published on crates.io
  • New prometheus metrics "staking_miner_trim_started" and "staking_miner_trim_success" have been added to monitor the trimming status.

[Changed]

  • chore: update deps to publish on crates.io (#715)
  • refactor(trimming): implement pre-trimming (#687)

[v1.1.0] - 2023-06-15

This release adds a subcommand info to detect whether the metadata of the staking-miner is compatible with a remote node.

$ staking-miner --uri wss://rpc.polkadot.io:443 info
Remote_node:
{
  "spec_name": "polkadot",
  "impl_name": "parity-polkadot",
  "spec_version": 9370,
  "impl_version": 0,
  "authoring_version": 0,
  "transaction_version": 20,
  "state_version": 0
}
Compatible: NO

Added

  • add info command (#596)

Changed

  • strip metadata (#595)
  • chore(deps): bump clap from 4.3.3 to 4.3.4 (#602)
  • chore(deps): bump clap from 4.3.2 to 4.3.3 (#601)
  • chore(deps): bump log from 0.4.18 to 0.4.19 (#600)
  • chore: fix clippy warnings (#599)
  • chore(deps): clap v4 (#598)
  • chore(deps): bump serde from 1.0.163 to 1.0.164 (#597)
  • chore(deps): bump futures from 0.3.27 to 0.3.28 (#590)
  • chore(deps): bump once_cell from 1.17.2 to 1.18.0 (#592)
  • chore(deps): bump regex from 1.8.3 to 1.8.4 (#593)

[v1.0.0] - 2023-06-02

This is the first release staking-miner-v2 which makes it production ready and the most noteable changes are:

  • Add support for emergency solutions
  • Change submission strategy if-leading to only submit if the score is better.
  • Listen to finalized heads by default.

Added

  • add trimming tests (#538)
  • Implements emergency solution command (#557)

Changed

  • update subxt (#571)
  • chore(deps): bump once_cell from 1.17.1 to 1.17.2 (#582)
  • chore(deps): bump log from 0.4.17 to 0.4.18 (#580)
  • chore(deps): bump tokio from 1.28.1 to 1.28.2 (#581)
  • chore(deps): bump regex from 1.8.2 to 1.8.3 (#577)
  • chore: remove unused deps and features (#575)
  • chore(deps): bump regex from 1.8.1 to 1.8.2 (#574)
  • chore(deps): bump anyhow from 1.0.69 to 1.0.71 (#570)
  • chore(deps): bump scale-info from 2.6.0 to 2.7.0 (#569)
  • chore(deps): bump serde from 1.0.162 to 1.0.163 (#565)
  • chore(deps): bump tokio from 1.28.0 to 1.28.1 (#560)
  • chore(deps): bump serde from 1.0.160 to 1.0.162 (#554)
  • improve README (#587)

Fixed

  • tests: read at most 1024 lines of logs before rpc server output (#556)
  • helpers: parse rpc server addr (#552)
  • change submission strategy == if leading to not submit equal score (#589)

Compatibility

Tested against:

  • Polkadot v9420
  • Kusama v9420
  • Westend v9420

[v0.1.4] - 2023-05-04

This is a release to support new runtime changes in polkadot v0.9.42.

[Added]

  • Allow configuring winner count in dry-run (#539)
  • add feasibility_check on mined solution (#483)

[Changed]

  • commands module to expose each sub-command, and put options next to them (#540)

[Fixed]

  • fix: update Cargo.lock for v0.1.3 (#499)

Compatibility

Tested against:

  • Polkadot v9420
  • Kusama v9420
  • Westend v9420

[v0.1.3] - 2022-03-21

This is a patch release that fixes a bug which takes the Weight::proof_size into account.

Fixed

  • fix: use Weight::proof_size (#481)

Changed

  • chore: upgrade subxt v0.27 (#464)
  • chore(deps): bump once_cell from 1.17.0 to 1.17.1 (#463)
  • chore(deps): bump secp256k1 in /staking-miner-playground (#470)
  • chore(deps): bump tokio in /staking-miner-playground (#471)
  • chore: adjust ci staking-miner-playground (#469)
  • chore(deps): bump paste from 1.0.11 to 1.0.12 (#477)
  • chore(deps): bump thiserror from 1.0.38 to 1.0.39 (#478)
  • chore(deps): bump serde_json from 1.0.93 to 1.0.94 (#479)
  • chore(deps): bump tokio from 1.25.0 to 1.26.0 (#476)
  • chore(deps): bump assert_cmd from 2.0.9 to 2.0.10 (#493)
  • chore(deps): bump assert_cmd from 2.0.8 to 2.0.9 (#492)
  • chore(deps): bump serde from 1.0.155 to 1.0.156 (#490)
  • chore(deps): bump serde from 1.0.154 to 1.0.155 (#487)
  • chore(deps): bump hyper from 0.14.24 to 0.14.25 (#488)
  • chore(deps): bump futures from 0.3.26 to 0.3.27 (#489)
  • chore(deps): bump serde from 1.0.153 to 1.0.154 (#486)
  • chore: remove unused dependencies (#485)
  • chore(deps): bump wasmtime from 5.0.0 to 5.0.1 (#484)
  • chore(deps): bump serde from 1.0.152 to 1.0.153 (#482)
  • Bump hyper from 0.14.23 to 0.14.24 (#457)
  • Bump serde_json from 1.0.91 to 1.0.93 (#460)
  • Bump futures from 0.3.25 to 0.3.26 (#456)
  • Bump tokio from 1.24.2 to 1.25.0 (#455)
  • Bump bumpalo from 3.10.0 to 3.12.0 (#453)
  • Bump tokio from 1.24.1 to 1.24.2 (#452)

Compatibility

Tested against:

  • Polkadot v9390
  • Kusama v9390
  • Westend v9390

[v0.1.2] - 2022-01-11

This is a release that adds a couple of new features/CLI options, a useful one is --dry-run which will check the validity of the mined solution which for example can spot if an account has too low balance but it requires that the RPC endpoint exposes unsafe RPC methods to work.

In addition, this release fixes another multiple solution bug.

Added

  • feat: add delay and log CLI args (#442)

Fixed

  • fix: dryRun check + fix multiple solutions bug (#443)

Changed

  • Bump tokio from 1.23.1 to 1.24.1 (#448)
  • Bump assert_cmd from 2.0.7 to 2.0.8 (#449)
  • Bump tokio from 1.23.0 to 1.23.1 (#447)
  • Bump serde from 1.0.151 to 1.0.152 (#444)
  • Bump once_cell from 1.16.0 to 1.17.0 (#446)
  • Bump paste from 1.0.9 to 1.0.11 (#438)
  • Bump serde from 1.0.149 to 1.0.151 (#439)
  • Bump serde_json from 1.0.89 to 1.0.91 (#440)
  • Bump thiserror from 1.0.37 to 1.0.38 (#441)
  • Bump secp256k1 from 0.24.0 to 0.24.2 (#432)
  • Bump scale-info from 2.3.0 to 2.3.1 (#434)

Compatibility

Tested against:

  • Polkadot v9360
  • Kusama v9360
  • Westend v9360

[v0.1.1] - 2022-12-06

This is a patch release that fixes a bug in --listen finalized before it was possible to submit multiple solutions because the solution was regarded as finalized when it was included in block.

Fixed

  • fix: --listen finalized wait for finalized xt (#425)

Changed

  • Bump jsonrpsee from 0.16.1 to 0.16.2 (#427)
  • Bump assert_cmd from 2.0.6 to 2.0.7 (#428)
  • Bump serde from 1.0.147 to 1.0.148 (#424)
  • Bump serde_json from 1.0.88 to 1.0.89 (#423)

Compatibility

Tested against:

  • Polkadot v9330
  • Kusama v9330
  • Westend v9330

[v0.1.0] - 2022-11-23

The first release of staking miner v2.

Compatibility

Tested against:

  • Polkadot v9330
  • Kusama v9330
  • Westend v9330