Skip to content

Commit

Permalink
Remove ExtraData from Block as it is unused (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
IronGauntlets authored Dec 4, 2023
1 parent e1125b6 commit 9876317
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion adapters/sn2core/sn2core.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func AdaptBlock(response *starknet.Block, sig *starknet.Signature) (*core.Block,
GlobalStateRoot: response.StateRoot,
Timestamp: response.Timestamp,
ProtocolVersion: response.Version,
ExtraData: nil,
SequencerAddress: response.SequencerAddress,
TransactionCount: uint64(len(response.Transactions)),
EventCount: eventCount,
Expand Down
1 change: 0 additions & 1 deletion adapters/sn2core/sn2core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func TestAdaptBlock(t *testing.T) {
}
assert.Equal(t, expectedEventCount, block.EventCount)
assert.Equal(t, test.protocolVersion, block.ProtocolVersion)
assert.Nil(t, block.ExtraData)

if test.sig != nil {
require.Len(t, block.Signatures, 1)
Expand Down
2 changes: 0 additions & 2 deletions core/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ type Header struct {
Timestamp uint64
// The version of the Starknet protocol used when creating this block
ProtocolVersion string
// Extraneous data that might be useful for running transactions
ExtraData *felt.Felt
// Bloom filter on the events emitted this block
EventsBloom *bloom.BloomFilter
// Amount of WEI charged per Gas spent
Expand Down

0 comments on commit 9876317

Please sign in to comment.