Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ let block_ctx = protos::BlockContext {
txns: vec![txn],
acct_states: vec![account],
blockhash_queue: vec![/* recent blockhashes */],
slot_ctx: Some(protos::SlotContext {
slot_context: Some(protos::SlotContext {
slot: 12345,
poh: vec![/* POH hash */],
parent_bank_hash: vec![/* parent hash */],
parent_lthash: vec![/* parent LT hash */],
}),
epoch_ctx: Some(protos::EpochContext {
epoch_context: Some(protos::EpochContext {
epoch: 100,
features: Some(protos::FeatureSet {
features: vec![/* feature flags */],
Expand Down
4 changes: 2 additions & 2 deletions proto/block.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ message BlockContext {
repeated bytes blockhash_queue = 3;

// Slot context (contains slot number)
SlotContext slot_ctx = 4;
SlotContext slot_context = 4;

// Epoch context (contains feature info)
EpochContext epoch_ctx = 5;
EpochContext epoch_context = 5;
}

message LeaderScheduleEffects {
Expand Down
4 changes: 2 additions & 2 deletions proto/txn.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ message TxnContext {
// Up to 300 (actually 301) most recent blockhashes (ordered from oldest to newest)
repeated bytes blockhash_queue = 3;

EpochContext epoch_ctx = 4;
SlotContext slot_ctx = 5;
EpochContext epoch_context = 4;
SlotContext slot_context = 5;
}

// The resulting state of an account after a transaction
Expand Down