-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Updates needed for substrate #4820 (composite accounts) #834
Conversation
…s-key' into gav-composite-account
# Conflicts: # network/Cargo.toml
Tested this against an API with the
So functionally it looks correct from my early testing. Will run through more. Edit/Update:
Overall, lgtm, does what it says on the tin. |
With paritytech/substrate#4767 a `GossipEngine` does not spawn its own tasks, but relies on its owner to poll it. This patch removes the unneeded executor argument and spawns the gossip engine as an orphaned task onto the executor instead.
|
||
// If this fails, destination account already has a vesting schedule | ||
// applied to it, and this claim should not be processed. | ||
ensure!( |
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.
When you removed this ensure check, I also believe you now made it possible for someone with a vesting schedule to drop the pot to zero by calling this function over and over.
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.
I have updated the logic and added a test which would have failed if this logic didn't exist.
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 to me. Would be good to get second review of the fix I pushed into the claims
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.
Been testing it all the way through, so functionality-wise lgtm.
I've included changes in #853 |
Superseded by #853. |
* use runtime:: prefix for message-lane pallet traces * renamed message-lane (module and primitives) folder into messages * replace "message lane" with "messages" where appropriate
No description provided.