<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://opentransactions.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Rollback_Last_Output</id>
	<title>Rollback Last Output - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://opentransactions.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Rollback_Last_Output"/>
	<link rel="alternate" type="text/html" href="http://opentransactions.org/wiki/index.php?title=Rollback_Last_Output&amp;action=history"/>
	<updated>2026-05-19T09:53:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.2</generator>
	<entry>
		<id>http://opentransactions.org/wiki/index.php?title=Rollback_Last_Output&amp;diff=3099&amp;oldid=prev</id>
		<title>Justusranvier at 14:41, 22 October 2014</title>
		<link rel="alternate" type="text/html" href="http://opentransactions.org/wiki/index.php?title=Rollback_Last_Output&amp;diff=3099&amp;oldid=prev"/>
		<updated>2014-10-22T14:41:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 14:41, 22 October 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot; &gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Add the next input from the stack to the transaction.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Add the next input from the stack to the transaction.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Perform the [[Finalize Transaction]] procedure.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Perform the [[Finalize Transaction]] procedure.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [[Initialize Transaction|Initialize]] a new transaction.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [[Initialize &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;New &lt;/ins&gt;Transaction|Initialize]] a new transaction.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Transaction Construction Algorithm (voting pools)|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;09&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Transaction Construction Algorithm (voting pools)|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;11&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Justusranvier</name></author>
		
	</entry>
	<entry>
		<id>http://opentransactions.org/wiki/index.php?title=Rollback_Last_Output&amp;diff=3094&amp;oldid=prev</id>
		<title>Justusranvier: Created page with &quot;&lt;div style=&quot;float: right&quot;&gt;&lt;include iframe src=&quot;https://www.lucidchart.com/documents/embeddedchart/81fbb6f6-b150-4a06-915e-7633b05da9af&quot; width=&quot;300&quot; height=&quot;600&quot; frameborder=&quot;0...&quot;</title>
		<link rel="alternate" type="text/html" href="http://opentransactions.org/wiki/index.php?title=Rollback_Last_Output&amp;diff=3094&amp;oldid=prev"/>
		<updated>2014-10-22T14:34:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;div style=&amp;quot;float: right&amp;quot;&amp;gt;&amp;lt;include iframe src=&amp;quot;https://www.lucidchart.com/documents/embeddedchart/81fbb6f6-b150-4a06-915e-7633b05da9af&amp;quot; width=&amp;quot;300&amp;quot; height=&amp;quot;600&amp;quot; frameborder=&amp;quot;0...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;float: right&amp;quot;&amp;gt;&amp;lt;include iframe src=&amp;quot;https://www.lucidchart.com/documents/embeddedchart/81fbb6f6-b150-4a06-915e-7633b05da9af&amp;quot; width=&amp;quot;300&amp;quot; height=&amp;quot;600&amp;quot; frameborder=&amp;quot;0&amp;quot; scrolling=&amp;quot;yes&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure is used if a transaction has exceeded the size limit, and can be brought back under the limit by removing the most-recently added output and the inputs needed to support it from the transaction &lt;br /&gt;
&lt;br /&gt;
The removed inputs and outputs will be added to the beginning of a new transaction.&lt;br /&gt;
&lt;br /&gt;
This procedure will remove one more input than is required to bring the transaction below size limits, and then add exactly one more. This will always result in a valid transaction because the only way to reach this procedure is by having successfully completed at least one [[Add Next Output]] cycle for the current transaction prior to adding an output or input that pushes the transaction over the size limit.&lt;br /&gt;
&lt;br /&gt;
==Initial Conditions==&lt;br /&gt;
&lt;br /&gt;
* An oversize transaction contains one or more outputs and their supporting inputs which do not exceed transaction size limits, and one output which does not.&lt;br /&gt;
* The number of inputs which are solely dedicated to satisfying the most recently-added output (not required for previous outputs) may be zero or more.&lt;br /&gt;
&lt;br /&gt;
==Sequence==&lt;br /&gt;
&lt;br /&gt;
# Remove the most-recently added output from the transaction and return it to the output stack.&lt;br /&gt;
#* This will cause the output to be the first one added to the next transaction.&lt;br /&gt;
# Remove the most-recently added input from the transaction and return it to the input stack.&lt;br /&gt;
# If the sum of input values exceeds the sum of output values by an amount greater than the required transaction fee:&lt;br /&gt;
#* Continue removing inputs one at a time until the sum of the input values falls below the needed output + transaction fee value.&lt;br /&gt;
# Add the next input from the stack to the transaction.&lt;br /&gt;
# Perform the [[Finalize Transaction]] procedure.&lt;br /&gt;
# [[Initialize Transaction|Initialize]] a new transaction.&lt;br /&gt;
&lt;br /&gt;
[[Category:Transaction Construction Algorithm (voting pools)|09]]&lt;/div&gt;</summary>
		<author><name>Justusranvier</name></author>
		
	</entry>
</feed>