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

wallet2: make unsigned/signed tx portable #1507

Closed
wants to merge 1 commit into from

Conversation

kenshi84
Copy link
Contributor

As discussed in Issue #2 of onion-monero-blockchain-explorer, currently the serialized files of unsigned/signed transactions are unportable; e.g., the tx pusher hosted by MoneroWorld.com can work accept files created in Linux. This PR solves the problem.

@moneromooo-monero
Copy link
Collaborator

I assume the BEGIN_SERIALIZE_OBJECT() bits aren't used on those types anymore ? Then plese remove them, or any changes to the structure will cause this to change, and cause the new ones to be forgot. If the BEGIN_SERIALIZE_OBJECT() isn't here, the coder will not think he's done the serialization changes.

@moneromooo-monero
Copy link
Collaborator

moneromooo-monero commented Dec 27, 2016

And bump the file format version.
Other than that, ok.

@kenshi84
Copy link
Contributor Author

@moneromooo-monero

I assume the BEGIN_SERIALIZE_OBJECT() bits aren't used on those types anymore ?

Removing it will make it impossible to read existing serialized files. If that's acceptable, I'll remove it.

And bump the file format version.

OK

@moneromooo-monero
Copy link
Collaborator

That's fine. The version check would prevent this too. And if you don't bump the version, you end up with two incompatible sets of files with the same version number.

@kenshi84
Copy link
Contributor Author

Is it OK now?

@moneromooo-monero
Copy link
Collaborator

You did not bump the file version number (look for UNSIGNED_TX_PREFIX and SIGNED_TX_PREFIX)

@kenshi84
Copy link
Contributor Author

Thanks, I was completely overlooking it.

moneroexamples added a commit to moneroexamples/onion-monero-blockchain-explorer that referenced this pull request Dec 28, 2016
@kenshi84
Copy link
Contributor Author

Closing for now, as it turns out that Boost's unofficial portable serializer has a flaw, see Issue #1511

@kenshi84 kenshi84 closed this Dec 28, 2016
@kenshi84
Copy link
Contributor Author

Reopened due to the cause of the error being understood, see PR #1515

@kenshi84 kenshi84 reopened this Dec 30, 2016
@ghost
Copy link

ghost commented Jan 1, 2017

Would it make sense to squash this one and #1515 together as a single working PR?

@kenshi84
Copy link
Contributor Author

kenshi84 commented Jan 2, 2017

@NanoAkron That makes sense, thanks for the suggestion! Closing this PR as such.

@kenshi84 kenshi84 closed this Jan 2, 2017
@kenshi84 kenshi84 deleted the portable-tx branch January 9, 2017 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants