You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When rosetta-cli loads configuration file with imported prefunded accounts and tries to fetch their balances, rosetta-cli receives only balances without any coin identifiers, which is especially important for UTXO based blockchains. So find_balance action with require_coin parameter set to true at construction API script returns account without any coin identifiers.
In this case the following execution of a script for construction API is impossible in an automated way (without specifying coin identifiers manually).
It seems that the main cause for this behavior is usage of rosetta-sdk-go v0.6.8, which already supports separate /account/coin method invocation. Please, see this link, which refers to the Rosetta API note about this applied decomposition
It doesn't seem to be a bug completely, however the usage of rosetta-cli v0.6.7 is uncomfortable
Modify rosetta-bitcoin/rosetta-cli-conf/testnet/config.json by adding prefunded accounts with construction configuration section
Run rosetta-bitcoin implementation by executing make run-testnet-online inside of the rosetta-bitcoin root directory
Install rosetta-cli v0.6.7
Run rosetta-cli check:construction with configuration file implemented at rosetta-bitcoin/rosetta-cli-conf/testnet/bitcoin.ros
Expected behavior
Invocation of rosetta-cli check:construction --configuration-file=path_to_file should transfer funds from imported prefunded account defined at configuration file to another account
Additional context
It may be a little bit clearer, if you also have a look at the line in rosetta-cli code here, where account balances fetching invokes first. Going deeper you may find, that returned account balances don't have any coin identifiers
The text was updated successfully, but these errors were encountered:
Describe the bug
When
rosetta-cli
loads configuration file with imported prefunded accounts and tries to fetch their balances,rosetta-cli
receives only balances without any coin identifiers, which is especially important for UTXO based blockchains. Sofind_balance
action withrequire_coin
parameter set totrue
at construction API script returns account without any coin identifiers.In this case the following execution of a script for construction API is impossible in an automated way (without specifying coin identifiers manually).
It seems that the main cause for this behavior is usage of
rosetta-sdk-go v0.6.8
, which already supports separate /account/coin method invocation. Please, see this link, which refers to the Rosetta API note about this applied decompositionIt doesn't seem to be a bug completely, however the usage of
rosetta-cli v0.6.7
is uncomfortableTo Reproduce
Steps to reproduce the behavior:
rosetta-bitcoin
implementationrosetta-bitcoin/rosetta-cli-conf/testnet/config.json
by adding prefunded accounts with construction configuration sectionrosetta-bitcoin
implementation by executingmake run-testnet-online
inside of therosetta-bitcoin
root directoryrosetta-cli v0.6.7
rosetta-cli check:construction
with configuration file implemented atrosetta-bitcoin/rosetta-cli-conf/testnet/bitcoin.ros
Expected behavior
Invocation of
rosetta-cli check:construction --configuration-file=path_to_file
should transfer funds from imported prefunded account defined at configuration file to another accountAdditional context
It may be a little bit clearer, if you also have a look at the line in
rosetta-cli
code here, where account balances fetching invokes first. Going deeper you may find, that returned account balances don't have any coin identifiersThe text was updated successfully, but these errors were encountered: