From fb3616aa8e3e855f11f221ab65ca03189969b144 Mon Sep 17 00:00:00 2001 From: David Rubin Date: Fri, 2 Jan 2026 22:08:17 -0800 Subject: [PATCH] use `*_context` instead of `*_ctx` in transaction & epoch context --- README.md | 4 ++-- proto/block.proto | 4 ++-- proto/txn.proto | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4ab5214..224d12e 100644 --- a/README.md +++ b/README.md @@ -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 */], diff --git a/proto/block.proto b/proto/block.proto index 19a7d74..f43ce1f 100644 --- a/proto/block.proto +++ b/proto/block.proto @@ -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 { diff --git a/proto/txn.proto b/proto/txn.proto index ac550ae..2c3304c 100644 --- a/proto/txn.proto +++ b/proto/txn.proto @@ -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