Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with check:construction #417

Open
kroos47 opened this issue Jun 7, 2024 · 0 comments
Open

Issue with check:construction #417

kroos47 opened this issue Jun 7, 2024 · 0 comments

Comments

@kroos47
Copy link

kroos47 commented Jun 7, 2024

Hey so I am trying to make a rosetta-api for our substrate based chain. I have added most of the api according to the docs and through manual testing, I see all the APIs are returning as expected both the data and construction side. So for further testing I have tried using rosetta-cli for testing and when did check:data it all passed without any issues.
But when trying out the check:construction side, I am unable to proceed as I am getting the following error

Command Failed: unable to perform broadcasts: unable to broadcast all transactions: unable to get current block identifier: unable to get head block identifier: head block not found

I am failing to understand what is happening here and I am stuck at this for sometime:
Here is the full log

badger 2024/06/07 11:18:35 INFO: All 0 tables opened in 0s
construction tester initialized with 1 accounts
2024/06/07 11:18:35 Setting account 5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu balance to 10000000000000000000000000 &{Symbol:AVAIL Decimals:18 Metadata:map[]}
2024/06/07 11:18:35 1 Balances Updated
Rebroadcasting all transactions...
unable to broadcast all transactions: unable to get current block identifier: unable to get head block identifier: head block not found
unable to perform broadcasts: unable to broadcast all transactions: unable to get current block identifier: unable to get head block identifier: head block not found

Error: unable to perform broadcasts: unable to broadcast all transactions: unable to get current block identifier: unable to get head block identifier: head block not found
github.com/coinbase/rosetta-cli/pkg/results.ExitConstruction
        /source/pkg/results/construction_results.go:305
github.com/coinbase/rosetta-cli/cmd.runCheckConstructionCmd
        /source/cmd/check_construction.go:159
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:974
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/coinbase/rosetta-cli/cmd.Execute
        /source/cmd/root.go:193
main.main
        /source/main.go:26
runtime.main
        /usr/local/go/src/runtime/proc.go:225
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1371

badger 2024/06/07 11:18:35 INFO: Storing value log head: {Fid:0 Len:29 Offset:1255}
Error: unable to perform broadcasts: unable to broadcast all transactions: unable to get current block identifier: unable to get head block identifier: head block not found

the following is my rosetta repo
and this is my DSL file and this is my config file
I am running using the following command

./bin/rosetta-cli check:construction --configuration-file /root/rosetta-avail/rosetta-cli/devnode/config.json

Do let me know if i messed up with any of configs or any other solutions so that I can proceed with the construction
Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant