ZIP 207: address NCC comment that Address(height) should be scoped to a FundingStream.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2020-09-05 13:23:33 +01:00
parent 3e6886705a
commit 4533e07cdc
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ License: MIT</pre>
\right) \\
\mathsf{FundingStream[FUND].AddressIndex}(\mathsf{height}) &amp;=&amp;
\mathsf{AddressPeriod}(\mathsf{height}) - \\&amp;&amp;\hspace{2em} \mathsf{AddressPeriod}(\mathsf{FundingStream[FUND].StartHeight}) \\
\mathsf{Address}(\mathsf{height}) &amp;=&amp; \mathsf{FundingStream[FUND].Addresses[} \\&amp;&amp;\hspace{2em} \mathsf{FundingStream[FUND].AddressIndex}(\mathsf{height})\mathsf{]}
\mathsf{FundingStream[FUND].Address}(\mathsf{height}) &amp;=&amp; \mathsf{FundingStream[FUND].Addresses[} \\&amp;&amp;\hspace{2em} \mathsf{FundingStream[FUND].AddressIndex}(\mathsf{height})\mathsf{]}
\end{eqnarray*}\)</div>
<p>This has the property that all active funding streams change the address they are using on the same block height schedule, aligned to the height of the first halving so that 48 funding periods fit cleanly within a halving interval. This can be leveraged to simplify implementations, by batching the necessary outputs for each funding period.</p>
<p>Below is a visual representation of how stream addresses align with funding periods:</p>

View File

@ -137,7 +137,7 @@ given block height is defined as follows:
\right) \\
\mathsf{FundingStream[FUND].AddressIndex}(\mathsf{height}) &=&
\mathsf{AddressPeriod}(\mathsf{height}) - \\&&\hspace{2em} \mathsf{AddressPeriod}(\mathsf{FundingStream[FUND].StartHeight}) \\
\mathsf{Address}(\mathsf{height}) &=& \mathsf{FundingStream[FUND].Addresses[} \\&&\hspace{2em} \mathsf{FundingStream[FUND].AddressIndex}(\mathsf{height})\mathsf{]}
\mathsf{FundingStream[FUND].Address}(\mathsf{height}) &=& \mathsf{FundingStream[FUND].Addresses[} \\&&\hspace{2em} \mathsf{FundingStream[FUND].AddressIndex}(\mathsf{height})\mathsf{]}
\end{eqnarray*}
This has the property that all active funding streams change the address they