Skip to content

Commit

Permalink
add contract code in AccountMeta, add gasLimit and gasUsed in BlockMe…
Browse files Browse the repository at this point in the history
…ta (#109)
  • Loading branch information
dustinxie authored Apr 16, 2021
1 parent fb7f8ac commit 9574ea5
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 42 deletions.
114 changes: 72 additions & 42 deletions golang/iotextypes/blockchain.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions proto/types/blockchain.proto
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ message BlockMeta {
string deltaStateDigest = 9;
string logsBloom = 10;
string previousBlockHash = 11;
uint64 gasLimit = 12;
uint64 gasUsed = 13;
}

// BlockIdentifier Metadata
Expand All @@ -103,6 +105,7 @@ message AccountMeta {
uint64 pendingNonce = 4;
uint64 numActions = 5;
bool isContract = 6;
bytes contractByteCode = 7;
}

message BlockStore {
Expand Down

0 comments on commit 9574ea5

Please sign in to comment.