Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use contract id in slot key #321

Merged
merged 5 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
5 changes: 5 additions & 0 deletions services/state/blockrecords/block_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,9 @@ message BlockInfo {
* should happen during the first transaction handled by the node.
*/
bool migration_records_streamed = 5;
/**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*/
Timestamp first_cons_time_of_current_block = 6;
}
4 changes: 3 additions & 1 deletion services/state/contract/storage_slot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ option java_package = "com.hederahashgraph.api.proto.java";
// <<<pbj.java_package = "com.hedera.hapi.node.state.contract">>> This comment is special code for setting PBJ Compiler java package
option java_multiple_files = true;

import "basic_types.proto";

/**
* The key of a storage slot. A slot is scoped to a specific contract number.
*
Expand All @@ -35,7 +37,7 @@ message SlotKey {
/**
* The number of the contract whose storage this slot belongs to.
*/
int64 contract_number = 1;
ContractID contractID = 1;

/**
* The EVM key of this slot, when left-padded with zeros to form a 256-bit word.
Expand Down