-
Notifications
You must be signed in to change notification settings - Fork 112
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
dot/rpc: implement chain_subscribeFinalizedHeads RPC method #1140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, please add a test!
I've added testing for websockets. |
tests/utils/gossamer_utils.go
Outdated
"--basepath", node.basePath, | ||
"--rpchost", HOSTNAME, | ||
"--rpcport", node.RPCPort, | ||
"--rpcmods", "system,author,chain,state", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add dev
here?
tests/rpc/rpc_03-chain_test.go
Outdated
map[string](interface{}){ | ||
"subscription": float64(1), | ||
"result": map[string](interface{}){ | ||
"number": "0x04", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason the expected block is block 4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, 1 makes more sense, I've updated this.
Changes
Tests
Checklist
Issues