Rename prev_id to prev_hash

This commit is contained in:
Michael Vines
2019-03-01 08:44:55 -08:00
parent e993d511e3
commit 7e7b79ef34
4 changed files with 35 additions and 35 deletions

View File

@@ -52,7 +52,7 @@ slot index and blob index for an entry, and the value is the entry data. Note bl
the ledger to find possible fork points.
* `last_index` - The index of the blob that is flagged as the last blob for this slot. This flag on a blob will be set by the leader for a slot when they are transmitting the last blob for a slot.
* `is_rooted` - True iff every block from 0...slot forms a full sequence without any holes. We can derive is_rooted for each slot with the following rules. Let slot(n) be the slot with index `n`, and slot(n).is_full() is true if the slot with index `n` has all the ticks expected for that slot. Let is_rooted(n) be the statement that "the slot(n).is_rooted is true". Then:
is_rooted(0)
is_rooted(n+1) iff (is_rooted(n) and slot(n).is_full()
@@ -60,7 +60,7 @@ slot index and blob index for an entry, and the value is the entry data. Note bl
4. Subscriptions - The Blocktree records a set of slots that have been "subscribed" to. This means entries that chain to these slots will be sent on the Blocktree channel for consumption by the ReplayStage. See the `Blocktree APIs` for details.
5. Update notifications - The Blocktree notifies listeners when slot(n).is_rooted is flipped from false to true for any `n`.
5. Update notifications - The Blocktree notifies listeners when slot(n).is_rooted is flipped from false to true for any `n`.
### Blocktree APIs
@@ -75,13 +75,13 @@ Note: Cumulatively, this means that the replay stage will now have to know when
The bank exposes to replay stage:
1. `prev_id`: which PoH chain it's working on as indicated by the id of the last
1. `prev_hash`: which PoH chain it's working on as indicated by the hash of the last
entry it processed
2. `tick_height`: the ticks in the PoH chain currently being verified by this
bank
3. `votes`: a stack of records that contain:
1. `prev_ids`: what anything after this vote must chain to in PoH
1. `prev_hashes`: what anything after this vote must chain to in PoH
2. `tick_height`: the tick height at which this vote was cast
3. `lockout period`: how long a chain must be observed to be in the ledger to
be able to be chained below this vote