Closed centercirclesolutions closed 2 years ago
Current structure for exporting to firestore
type MS struct {
MilestoneIndex uint32 `firestore:"milestone"`
Complete bool `firestore:"completed"`
Completed time.Time `firestore:"completedOn,serverTimestamp"`
Created time.Time `firestore:"createdOn,serverTimestamp"`
NodeId string `firestore:"listenerNodeId"`
TrxValidCount int `firestore:"trxValidCount"`
TrxConflictCount int `firestore:"trxConflictCount"`
TrxFailedCount int `firestore:"trxFailedCount"`
}
type FSTX struct {
Created time.Time `firestore:"createdOn,serverTimestamp"`
BlockId string `firestore:"blockId"`
Milestone uint32 `firestore:"milestone"`
Processed bool `firestore:"processed"`
Payload map[string]interface{} `firestore:"payload"`
InclusionState int32 `firestore:"inclusionState,omitempty"`
ConflictReason int32 `firestore:"conflictReason,omitempty"`
}
TangleListener updates for Stardust
transactions_conflict
sub-collection under the milestoneTangleListener Repo's
INX TangleListener Mainnet TangleListener
Items for future work
ReadMilestoneCone
to get all blocks in the milestone. This may not scale to 1000bps and the reccomendation is to useListenToLedgerUpdates
instead