-
Notifications
You must be signed in to change notification settings - Fork 24
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
generate new Sender
if hd_index was provided in set_options
#404
generate new Sender
if hd_index was provided in set_options
#404
Conversation
Sender
if hd_index was provided in set_options
Deploying cw-orchestrator with
|
Latest commit: |
9215edd
|
Status: | ✅ Deploy successful! |
Preview URL: | https://ecec2f8a.cw-orchestrator.pages.dev |
Branch Preview URL: | https://misha-orc-127-daemon-rebuild.cw-orchestrator.pages.dev |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
|
.build() | ||
.unwrap(); | ||
|
||
let indexed_daemon = daemon.rebuild().hd_index(56).build().unwrap(); |
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.
Changing the hd_index doesn't change the sender address?
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.
On rebuild - yes, that's what this PR tries to fix
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.
Then why are you asserting that the address basically remains the same? This test confuses me a bit
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.
assert_ne
is not equal, before this PR they eq
, and now they ne
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.
Very nice !
We will need to support updating the daemon state as well when rebuilding, but that's another task.
What do you mean by this? |
Here, when the state of the daemon is updated (grpc channel for instance, if a same daemon is used for another chain), the sender channel is not updated which leads to issues if you're changing the chain. This is addressed in #326 |
hd_index impacts private key meaning if it's provided inside
SenderOptions
new Sender should be created from scratchCloses ORC-127, Closes ORC-125