Difference between revisions of "Insufficient Inputs"

From Open Transactions
Jump to navigation Jump to search
(Created page with "<div style="float: right"><include iframe src="https://www.lucidchart.com/documents/embeddedchart/9b471e6e-0a62-408a-ad0e-a5d7c491aa43" width="150" height="500" frameborder="0...")
 
 
Line 5: Line 5:
 
==Initial Conditions==
 
==Initial Conditions==
  
* [[#Add Next Output|Add Next Output]] has been completed successfully at least once.
+
* [[Add Next Output]] has been completed successfully at least once.
 
* An empty transaction skeleton has been created.
 
* An empty transaction skeleton has been created.
 
* At least one output remains in the stack, but the input stack is empty.
 
* At least one output remains in the stack, but the input stack is empty.
Line 13: Line 13:
 
* Pop all outputs from the output stack and update their <code>status</code> property in the [[withdrawal status]] list to "partial-".
 
* Pop all outputs from the output stack and update their <code>status</code> property in the [[withdrawal status]] list to "partial-".
  
No further action is necessary. After completing this procedure the algorithm moves on to the [[#Finalize Transaction|Finalize Transaction]] procedure which will discard the empty transaction skeleton which would have otherwise contained the outputs which were processed in this procedure.
+
No further action is necessary. After completing this procedure the algorithm moves on to the [[Finalize Transaction]] procedure which will discard the empty transaction skeleton which would have otherwise contained the outputs which were processed in this procedure.
  
[[Category:Transaction Construction Algorithm (voting pools)|11]]
+
[[Category:Transaction Construction Algorithm (voting pools)|13]]

Latest revision as of 14:39, 22 October 2014

This procedure is followed when the Output List Initialization step estimated that that the input list was sufficient to fulfill the valid outputs but, due to change and/or transaction fees, one or more outputs can not be fulfilled.

Initial Conditions

  • Add Next Output has been completed successfully at least once.
  • An empty transaction skeleton has been created.
  • At least one output remains in the stack, but the input stack is empty.

Sequence

  • Pop all outputs from the output stack and update their status property in the withdrawal status list to "partial-".

No further action is necessary. After completing this procedure the algorithm moves on to the Finalize Transaction procedure which will discard the empty transaction skeleton which would have otherwise contained the outputs which were processed in this procedure.