github dfinity/ic rosetta-icrc-release-1.2.11
rosetta-icrc-1.2.11

one hour ago

What's changed

Changed

  • /network/options reports the version of the Rosetta API specification the implementation adheres to, 1.4.13, as rosetta_version. It previously reported the release of ICRC Rosetta there, which is still reported as node_version (#12392)

Fixed

  • Reject transactions that call a canister other than the ledger of the requested network, or a method that /construction/payloads does not produce, or that do not set created_at_time, in /construction/parse, /construction/hash, /construction/combine and /construction/submit. Previously, parse, hash and combine accepted a call to any canister and parse described it in the token of the requested network. Without created_at_time, the ledger does not deduplicate the envelopes of a transaction, so it could be executed once per envelope (#12362)
  • Reject transactions whose envelopes carry different calls in /construction/parse, /construction/hash, /construction/combine and /construction/submit. Previously, parse described only the first envelope while submit sent the currently valid envelope that expires last, so the call that was sent need not be the one that was described (#12361)
  • Bound the cardinality of HTTP metric labels: requests are labelled with their route template, requests to unknown paths are recorded under a single UNMATCHED endpoint label and non-standard HTTP methods under a single OTHER method label (#12084)
  • Record HTTP metrics for requests whose network identifier does not match a configured token under the default token label instead of the raw network identifier (#12084)
  • Reject request bodies larger than 2 MiB with 413 Payload Too Large before buffering them in full for the HTTP metrics. Such a request is recorded under the default token label, and the recorded request duration now includes reading the request body (#12352)
  • /account/balance no longer answers above the highest block for which account balances have been
    computed. Previously the response was labelled with the highest stored block while the balance
    itself was the one computed at the highest processed block, so while the balance
    synchronization lagged the block synchronization the endpoint reported a balance at a block
    height at which it was never true. Queries without a block identifier are now answered at the
    highest processed block, which is the same height that /network/status reports, and queries for
    an explicit block above that height now fail with the new retriable error 14 instead of being
    answered from a lower height. Note that this means that /account/balance may report a block
    height lower than the one /block serves, and may reject a block identifier that /block
    accepts, until the balance synchronization catches up. (#11627)
  • Limit the number of envelopes in /construction/combine to 720 and the size of signatures and public keys, and reject repeated envelopes (#12251)
  • Limit the memo length in /construction/payloads to 1024 bytes (#11886)
  • Limit the length of amounts to 78 digits and the size of the ledger method arguments in /construction/payloads to 4 KiB (#12095)
  • Bound the Candid decoding of ledger method arguments in /construction/parse, /construction/hash and /construction/submit (#12106)
  • Cap the limit of /search/transactions requests to the maximum of 10,000 transactions per request (#11892)

DockerHub Link

Don't miss a new ic release

NewReleases is sending notifications on new releases.