Skip to content

Commit

Permalink
Add preimage struct
Browse files Browse the repository at this point in the history
  • Loading branch information
bamzedev committed Jul 30, 2024
1 parent c3dd4e3 commit 46777b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ type Block struct {
// Extrinsic represents the block extrinsic data
type Extrinsic struct {
ET []*TicketProof
EP *PreimageExtrinsic
}
9 changes: 9 additions & 0 deletions internal/block/preimage.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package block

// PreimageItem represents a single preimage item in the extrinsic
type Preimage struct {
ServiceIndex uint32
Data []byte
}

type PreimageExtrinsic []Preimage

0 comments on commit 46777b1

Please sign in to comment.