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

Add fields for rpc struct #4

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Changes from all 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
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
Loading