gosdk
gosdk copied to clipboard
chain fee sdk
Changes
- zcncore SDK method to calculate the suggested chain fee.
Fixes
Tests
Tasks to complete before merging PR:
- [ ] Ensure system tests are passing. If not Run them manually to check for any regressions :clipboard:
- [ ] Do any new system tests need added to test this change? do any existing system tests need updated? If so create a PR at 0chain/system_test
- [ ] Merge your system tests PR to master AFTER merging this PR
Associated PRs (Link as appropriate):
- blobber:
- 0chain: https://github.com/0chain/0chain/pull/1753
- system_test: https://github.com/0chain/system_test/pull/464
- zboxcli: https://github.com/0chain/zboxcli/pull/316
- zwalletcli: https://github.com/0chain/zwalletcli/pull/184
- Other: ...
Hey, thanks @stewartie4.
utils.go:74: 0box-sdk [DEBUG] 2022/10/28 00:18:21.153386 networkworker.go:105: Get network result:{"miners":["https://dev-2.devnet-0chain.net/miner02","https://dev-2.devnet-0chain.net/miner01","https://dev-2.devnet-0chain.net/miner03"],"sharders":["https://dev-2.devnet-0chain.net/sharder02","https://dev-2.devnet-0chain.net/sharder01"]}
utils.go:74: Error creating allocation: failed to calculate suggested fee, failed to fetch data from miners
I think it's RE pr #https://github.com/0chain/0chain/pull/1753 We have to redeploy devnet as it's add a new API and the current feature depends on that.
Seen same error in https://github.com/0chain/zwalletcli/pull/184#issuecomment-1294026271
RE systems tests, I think we can add some (mock tests probably) for the 0chain PR1753. Could you please guide me? Thanks.
Hey guys, I think merging the following PRs (in the order) will solve the system tests ci
- https://github.com/0chain/system_test/pull/464
- https://github.com/0chain/zboxcli/pull/316
Hey guys, I think merging the following PRs (in the order) will solve the system tests ci
Ping. Guys, let me know if you are okay with the PR. IIUC, for the systems tests, we need the aforesaid PRs to be merged. cc @dabasov @peterlimg Thanks
Manual system tests [failure] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee-integration |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | staging |
blobber | staging |
authorizer | staging |
0box | staging |
0block | staging |
0dns | staging |
explorer | staging |
0proxy | staging |
0search | staging |
@bisakhmondal please run system tests manually with related branches of gosdk, zboxcli, zwalletcli and system tests, we will need to see the system tests pass before merging them.
The system tests are failing on staking blobbers because the changes use the estimated txn cost *1e10
as transaction fee, which is totally wrong and the txn will be rejected due to the large fee setting. We will need to figure out the coefficient for converting the cost to fee.
Manual system tests [cancelled] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | staging |
0box | staging |
0block | staging |
0dns | staging |
explorer | staging |
0proxy | staging |
0search | staging |
Manual system tests [failure] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | staging |
0box | staging |
0block | staging |
0dns | staging |
explorer | staging |
0proxy | staging |
0search | staging |
Manual system tests [failure] with the following config
config | value |
---|---|
tests skipped | false |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0block | staging |
0dns | staging |
explorer | master |
0proxy | staging |
0search | staging |
Manual system tests [failure] with the following config
config | value |
---|---|
tests skipped | false |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0block | staging |
0dns | staging |
explorer | master |
0proxy | staging |
0search | staging |
Manual system tests [cancelled] with the following config
config | value |
---|---|
tests skipped | false |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0block | staging |
0dns | staging |
explorer | master |
0proxy | staging |
0search | staging |
Manual system tests [cancelled] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0block | staging |
0dns | staging |
explorer | master |
0proxy | staging |
0search | staging |
Manual system tests [failure] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0block | staging |
0dns | staging |
explorer | master |
0proxy | staging |
0search | staging |
Manual system tests [success] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0block | staging |
0dns | staging |
explorer | master |
0proxy | staging |
0search | staging |
Manual system tests [failure] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0block | staging |
0dns | staging |
explorer | staging |
0proxy | staging |
0search | staging |
Manual system tests [cancelled] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0block | staging |
0dns | staging |
explorer | staging |
0proxy | staging |
0search | staging |
Manual system tests [success] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0block | staging |
0dns | staging |
explorer | staging |
0proxy | staging |
0search | staging |
Manual system tests [failure] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee-v2 |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0dns | staging |
Manual system tests [cancelled] with the following config
config | value |
---|---|
tests skipped | FALSE |
system-tests | chain-fee |
gosdk | chain-fee |
zboxcli | chain-fee |
zwalletcli | feat/chain-fee |
0chain | chain-fee-v2 |
blobber | chain-fee |
authorizer | chain-fee |
0box | chain-fee |
0dns | staging |