Skip to content

Commit

Permalink
Add fields for rpc struct (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
boqiu authored Feb 29, 2024
1 parent 8759c32 commit bbb5632
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions node/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ import (
)

type Status struct {
ConnectedPeers uint `json:"connectedPeers"`
ConnectedPeers uint `json:"connectedPeers"`
LogSyncHeight uint64 `json:"logSyncHeight"`
LogSyncBlock common.Hash `json:"logSyncBlock"`
}

type Transaction struct {
StreamIds []*hexutil.Big `json:"streamIds"`
Data []byte `json:"data"` // in-place data
DataMerkleRoot common.Hash `json:"dataMerkleRoot"`
Size uint64 `json:"size"` // file size in bytes
Seq uint64 `json:"seq"`
StreamIds []*hexutil.Big `json:"streamIds"`
Data []byte `json:"data"` // in-place data
DataMerkleRoot common.Hash `json:"dataMerkleRoot"`
StartEntryIndex uint64 `json:"startEntryIndex"`
Size uint64 `json:"size"` // file size in bytes
Seq uint64 `json:"seq"`
}

type FileInfo struct {
Expand Down

0 comments on commit bbb5632

Please sign in to comment.