github hashgraph/hedera-mirror-node v0.59.0

latest releases: v0.117.1, v0.118.0-rc1, v0.116.1...
2 years ago

The previous release saw support for the persistence of HIP-406 staking-related data. Staking persistence saw further fine-tuning in this release to adapt to changes in the NodeStakeUpdateTransaction protobuf. The decline_reward, staked_account_id, staked_node_id fields were added to /api/v1/accounts and /api/v1/accounts/{id} to show account-level staking properties. We also added staking related fields to the existing /api/v1/network/nodes REST API (see example below).

GET /api/v1/network/nodes

{
  "nodes": [
    {
      "description": "address book 1",
      "file_id": "0.0.102",
      "max_stake": 50000,
      "memo": "0.0.4",
      "min_stake": 1000,
      "node_account_id": "0.0.4",
      "node_cert_hash": "0x01d...",
      "node_id": 1,
      "public_key": "0x4a...",
      "service_endpoints": [],
      "stake": 20000,
      "stake_not_rewarded": 19900,
      "stake_rewarded": 100,
      "stake_total": 100000,
      "staking_period": {
        "from": "1655164800.000000000",
        "to": "1655251200.000000000"
      },
      "timestamp": {
        "from": "16552512001.000000000",
        "to": null
      }
    }
  ],
  "links": {
    "next": null
  }
}

Support for the new record file v6 format as defined in HIP-435 was added in this release. Record file v6 adds block number as well as support for the new sidecar record files that carry detailed contract traceability information that mirror nodes can optionally choose to download. The record and signature files are now in a more maintainable protobuf format that should make them easier to enhance with new fields in the future without requiring breaking changes. Also, the v6 record files will now be compressed which should translate into reduced network and storage costs while potentially improving performance. Once v6 is enabled in a future hedera-service's release, mirror node operators will be required to update to a version that supports the new v6 format to avoid downtime.

Rosetta saw a number of improvements this release to better align it with the Rosetta specification. A configurable valid duration seconds option was added to the transaction construction API to support customization of this value. Support for a consistent block number regardless of startDate was added in Rosetta now that Hedera has a consistent block as defined in HIP-415. A 0x prefix was added to alias addresses returned via the API to denote that the data is hex-encoded.

Enhancements

  • Update staking field ingestion and show account staking fields in rest api #3956
  • Add max_stake, min_stake & stake_not_rewarded #3955
  • Update block number migration to latest (#3922) #3947
  • Add NodeStake to nodes rest api #3923
  • Support record stream v6 #3916
  • Support consistent block number in rosetta #3915
  • Persist per node reward rate #3909
  • Persist node reward rate from NodeStakeUpdate transactions #3908
  • Add Configurable Valid Duration Seconds to Rosetta Transaction #3907
  • Add 0x prefix to Rosetta Account Alias #3883
  • Rosetta make transaction valid duration configurable with 180s default #3856
  • Rosetta add 0x prefix to alias addresses #3855
  • Backfill block information #3839
  • Rosetta support consistent block number #3819
  • HIP-435 Record Stream V6 #3797
  • HIP-406 Add stake to nodes REST API #3795
  • HIP-406 Add staking fields to accounts REST API #3774
  • Backfill block information #3589

Bug Fixes

  • Internal error when retrieving contract result by ethereum transaction hash #3971
  • Fix cleanup workflow #3967
  • Fix exchange rate & fee schedule APIs #3960
  • Endpoint network/exchangerate throw internal error #3958
  • Internal error when retrieving contract result by ethereum transaction hash #3952
  • Suppress CVE-2016-1000027 #3948
  • Avoid accidentally replacing semantic version in rosetta chart test pod template #3944
  • Fix rosetta BDD test failure in main #3921
  • Rosetta BDD test fails in workflow run from main branch #3920
  • Improve record file size support #3917
  • Fix use of shard and realm in contracts REST API #3913
  • Block REST API has null size #3906
  • Searching by evm address at contracts endpoint not always working #3813
  • Contracts REST API ignores shard and realm parts of contract ID #3809
  • Cleanup job fails with multi-arch manifests #3629

Dependency Upgrades

  • Bump evm from 22.4.2 to 22.4.3 #3965
  • Bump jackson-dataformat-msgpack from 0.9.1 to 0.9.2 #3964
  • Bump software.amazon.awssdk:bom from 2.17.209 to 2.17.214 #3963
  • Bump prettier from 2.6.2 to 2.7.1 in /hedera-mirror-rest #3962
  • Bump aws-sdk from 2.1152.0 to 2.1157.0 in /hedera-mirror-rest #3961
  • Bump docker-maven-plugin from 0.40.0 to 0.40.1 #3946
  • Bump mvn-golang-wrapper from 2.3.9 to 2.3.10 #3945
  • Bump jest from 28.1.0 to 28.1.1 in /hedera-mirror-rest/check-state-proof #3942
  • Bump github.com/stretchr/testify from 1.7.1 to 1.7.2 in /hedera-mirror-rosetta #3941
  • Bump github.com/coinbase/rosetta-sdk-go from 0.7.9 to 0.7.10 in /hedera-mirror-rosetta #3940
  • Bump gorm.io/gorm from 1.23.5 to 1.23.6 in /hedera-mirror-rosetta #3939
  • Bump maven-surefire-plugin from 3.0.0-M5 to 3.0.0-M7 #3938
  • Bump jest from 28.1.0 to 28.1.1 in /hedera-mirror-rest #3937
  • Bump dependency-check-maven from 7.1.0 to 7.1.1 #3936
  • Bump software.amazon.awssdk:bom from 2.17.204 to 2.17.209 #3935
  • Bump aws-sdk from 2.1148.0 to 2.1152.0 in /hedera-mirror-rest #3932
  • Bump jest from 28.1.0 to 28.1.1 in /hedera-mirror-rest/monitoring/monitor_apis #3931
  • Bump prom-client from 13.2.0 to 14.0.1 in /hedera-mirror-rest #3930
  • Bump jest-circus from 28.1.0 to 28.1.1 in /hedera-mirror-rest #3929
  • Bump headlong from 6.3.2 to 6.4.0 #3928
  • Bump qs from 6.10.3 to 6.10.5 in /hedera-mirror-rest #3927
  • Bump eslint-plugin-jest from 26.4.5 to 26.5.3 in /hedera-mirror-rest #3905
  • Bump @hashgraph/proto from 2.4.2 to 2.5.0 in /hedera-mirror-rest/check-state-proof #3903
  • Bump github.com/onrik/gorm-logrus from 0.3.0 to 0.4.0 in /hedera-mirror-rosetta #3902
  • Bump github.com/hashgraph/hedera-sdk-go/v2 from 2.14.0 to 2.15.0 in /hedera-mirror-rosetta #3901
  • Bump sdk from 2.12.0 to 2.15.0 #3900
  • Bump aws-sdk from 2.1145.0 to 2.1148.0 in /hedera-mirror-rest #3899
  • Bump software.amazon.awssdk:bom from 2.17.201 to 2.17.204 #3898
  • Bump rfc4648 from 1.5.1 to 1.5.2 in /hedera-mirror-rest #3897
  • Bump embedded.testcontainers.version from 2.2.0 to 2.2.2 #3896
  • Bump @hashgraph/proto from 2.4.2 to 2.5.0 in /hedera-mirror-rest #3895
  • Bump grpc.version from 1.46.0 to 1.47.0 #3894
  • Bump express-openapi-validator from 4.13.7 to 4.13.8 in /hedera-mirror-rest #3893
  • Bump mathjs from 10.6.0 to 10.6.1 in /hedera-mirror-rest #3891
  • Bump mathjs from 10.6.0 to 10.6.1 in /hedera-mirror-rest/monitoring/monitor_apis #3890
  • Bump Spring Boot from 2.6.8 to 2.7.0 #3889
  • Bump grpc-spring-boot-starter from 2.11.0.RELEASE to 2.13.1.RELEASE #3120

Contributors

We'd like to thank all the contributors who worked on this release!

Don't miss a new hedera-mirror-node release

NewReleases is sending notifications on new releases.