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

Make Transaction Field in V4 Slate Optional #356

Merged
merged 9 commits into from
Mar 10, 2020

Conversation

yeastplume
Copy link
Member

@yeastplume yeastplume commented Mar 6, 2020

In anticipation of experimentation related to #317, this:

  • Changes the tx field in the V4 Slate to be an Option<Transaction> as opposed to a Transaction
  • Adds a tx_or_error() function to the Slate, and use that in all places where the transaction was read from the slate directly. This will help ensure that the transaction is always populated where it's expected to be populated (i.e. everywhere, currently,) Any future cases in which Slates can be used in a 'reduced' form can be handled specially.

This shouldn't have any effect on the format of serialized slates, and from an external perspective, nothing should change other than slates being able to de/serialize without the Transaction field present. (Should add a test for this)

api/src/foreign.rs Outdated Show resolved Hide resolved
@yeastplume yeastplume merged commit c42d5dd into mimblewimble:master Mar 10, 2020
@yeastplume yeastplume deleted the compact_slate_mode branch March 13, 2020 10:25
antiochp pushed a commit to antiochp/grin-wallet that referenced this pull request Aug 7, 2020
* make transaction field in V4 Slate optional

* add mutable/non mutable version of tx getter

* removal of mut references where not needed

* remove more muts

* update from master

* update from master

* test fixes
bayk added a commit to mwcproject/mwc-wallet that referenced this pull request Jul 21, 2024
…onal (mimblewimble#356)

* make transaction field in V4 Slate optional
* add mutable/non mutable version of tx getter
* removal of mut references where not needed
* remove more muts
* update from master
* update from master
* test fixes
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