-
Notifications
You must be signed in to change notification settings - Fork 990
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
Feature/slate serialization #2534
Feature/slate serialization #2534
Conversation
- Add hex serialization
Looks good so far! Let me know when it's ready for a full review and I'll look in more detail as well as perform some testing. |
* initial changes for windows build and unit/integration tests * rustfmt * wallet+store tests * rustfmt * fix linux daemonize * better encapsulate file rename * rustfmt * remove daemonize commands * rustfmt * remove server start/stop commands * add ability to drop pmmr backend files explicitly for txhashset unzip * rustfmt * fix pmmr tests * rustfmt
* switch pancurses backend to win32 * revert changes to restore test
I'm really getting quite swamped with outside work, if anyone can help a bit with testing, especially the keybase part would be a huge help |
EDIT: nvm you already did Tested send via keybase to an old node and it doesnt work. The old node expects the old slate format so how can this work in a backward compatible way ? |
Sending from old to new doesn't work either, the new node gets the slate, responds but the old node fails to deserialize and doesnt finalize the transaction |
Thanks Mike!!!
Will look into it asap, probably Tuesday but maybe tomorrow.
…On Sun, Feb 10, 2019, 22:21 Mike Dallas ***@***.*** wrote:
Sending from old to new doesn't work either, the new node gets the slate,
responds but the old node fails to deserialize and doesnt finalize the
transaction
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2534 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATCAq-ZOFWP-KFiBBmYKyDTkJkELyroMks5vMH9cgaJpZM4aj-0k>
.
|
@svechinsky I sent a fix to your branch. This PR breaks receiving grins for anyone who doesn't upgrade. Should we save it for the hard fork ? |
Keybase fix
I think the plan is to enable upgraded nodes to receive grins from non-upgraded nodes. Thanks for the keybase fix!!! |
…re/slate-serialization
…rin into feature/slate-serialization
Ok @yeastplume, tested for http should be ready now |
* add repost method into wallet owner api * rustfmt
Before tx creation user can estimate fee and locked amount with different selection strategies by providing `-e` flag for `wallet send` command.
Sorry, merge conflict introduced. I think this looks great, but I'm a little bit unsure as to how we should go about merging this. (I want to get this in one way or another so I can start splitting the wallet out). Either we:
I think given this is non-consensus breaking and there will be some upgrade pain anyhow due to the upcoming wallet split, I'm not against merging this into master as is. Thoughts @antiochp @ignopeverell ? |
To keep sane versioning I think we should introduce that with |
Targeting 1.1.0 introduced a conflict, sorry about that. Also not really a WIP anymore, right? |
Fixed both :) |
@svechinsky And unfortunately, each time when I faced this problem, I have to create another new branch (from your target branch, in your case, it could be |
I fetched the new branch (milestone/1.1.0) and merged (with merge not rebase) it into mine. |
Oh I understand what happened. It also wants to merge all the commits since 1.1.0 was seperated from master. |
I don't think this is a bad thing, the other commits that have been picked up are stuff that's needed anyhow, windows support and http repost. I'm going to merge this as is then sort out any issues manually. |
This change enables hex serialization for slate objects in a backwards compatible way by introducing enum based versioning for the slate.
This was the nicest way I could find/think of to do this using serde.
It will enable an upgraded client to receive grin from an old client but not the other way around (this would require passing another argument down to the send function).
Probably shouldn't be merged until after #2533 is merged, my branch is updated and some more testing is done.If anyone wants to help with testing it would be lovely since I'm a bit swamped with outside stuff atm.
I'll try and get to it as soon as I can, have never used keybase so would especially appreciate help here.
Testing is done, ready for CR and merge.