What's changed
Changed
/network/optionsreports the version of the Rosetta API specification the implementation adheres to, 1.4.13, asrosetta_version. It previously reported the release of ICRC Rosetta there, which is still reported asnode_version(#12392)
Fixed
- Reject transactions that call a canister other than the ledger of the requested network, or a method that
/construction/payloadsdoes not produce, or that do not setcreated_at_time, in/construction/parse,/construction/hash,/construction/combineand/construction/submit. Previously, parse, hash and combine accepted a call to any canister and parse described it in the token of the requested network. Withoutcreated_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/combineand/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
UNMATCHEDendpoint label and non-standard HTTP methods under a singleOTHERmethod 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 Largebefore 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/balanceno 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/statusreports, 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/balancemay report a block
height lower than the one/blockserves, and may reject a block identifier that/block
accepts, until the balance synchronization catches up. (#11627)- Limit the number of envelopes in
/construction/combineto 720 and the size of signatures and public keys, and reject repeated envelopes (#12251) - Limit the memo length in
/construction/payloadsto 1024 bytes (#11886) - Limit the length of amounts to 78 digits and the size of the ledger method arguments in
/construction/payloadsto 4 KiB (#12095) - Bound the Candid decoding of ledger method arguments in
/construction/parse,/construction/hashand/construction/submit(#12106) - Cap the
limitof/search/transactionsrequests to the maximum of 10,000 transactions per request (#11892)