Difference between revisions of "SIP4-Optional-Input-Value"

From Snowblossom Wiki
Jump to: navigation, search
(Created page with "<div align="center"> <h1>Snowblossom Improvement Proposal 4</h1> <h2>SIP4: Add optional Transaction Input</h3> </div> = Change = In this change, we add an optional fi...")
 
Line 9: Line 9:
 
Validation will fail if it is set (non-zero) and is incorrect.
 
Validation will fail if it is set (non-zero) and is incorrect.
  
This change makes it so that an offline transaction signer can have a more complete view of a transaction before signing it.
+
This change makes it so that an offline transaction signer can have a more complete view of a transaction before signing it.  This also enabled the Rosetta API offline /construction/parse .
  
 
= Code =
 
= Code =

Revision as of 06:27, 13 November 2020

Snowblossom Improvement Proposal 4

SIP4: Add optional Transaction Input

Change

In this change, we add an optional field to TransactionInput for the value of the input. If it is set (non-zero) transaction validation will ensure that it accurately represents what is happening in the transaction. Validation will fail if it is set (non-zero) and is incorrect.

This change makes it so that an offline transaction signer can have a more complete view of a transaction before signing it. This also enabled the Rosetta API offline /construction/parse .

Code

Work in progress.

https://github.com/snowblossomcoin/snowblossom/tree/sip4-tx-input-value


Questions

Deployment

If deployed, miners will have to update or risk mining blocks that will be orphaned if they allow transactions that are invalid by this rule.

Regular validating nodes do not need to update, as they will successfully validate blocks regardless of this rule.

Clients won't use this feature by default and will not need to be updated.

Voting

  • Passes when 1000 blocks pass containing 25% voting and >50% agreement
  • Pools will represent their miners.
  • Set in your miner or pool configuration file either
    • vote_yes=4
    • vote_no=4

Sponsors

  • Joseph Gleason - Fireduck (slack) - fireduck64 (github)