hashgraph / hedera-sdk-go

Hedera™ Hashgraph SDK for Go
https://docs.hedera.com/docs/hedera-sdks
Apache License 2.0
89 stars 64 forks source link

Add conditional mirror node queries #952

Closed 0xivanov closed 3 months ago

0xivanov commented 3 months ago

Problem

There is uncertainty regarding when or if the consensus nodes will deprecate fields affected by HIP-367.

Solution

Since we’ve already implemented solution so that AccountBalanceQuery, AccountInfoQuery, and ContractInfoQuery get part of the data from the Mirror Node REST API (HIP-367), we need a condition that checks if the affected data (by HIP-367) is still present in the consensus nodes response and return it if it is.

Alternatives

No response

0xivanov commented 3 months ago

Closing because this approach is not seemless or even possible in other SDKs. See https://github.com/hashgraph/hedera-sdk-go/issues/953