Crate hopr_db_node

Crate hopr_db_node 

Source

Modules§

errors

Structs§

ChannelTicketStatistics
Contains ticket statistics for one or more channels.
HoprNodeDb
HoprNodeDbConfig
PeerSelector
PeerStatus
Status of the peer as recorded by a network component.
RedeemableTicket
Represents a winning ticket that can be successfully redeemed on-chain.
Stats
Statistical observation related to peers in the network. Statistics on all peer entries stored by the network component.
TicketSelector
Allows selecting tickets via HoprDbTicketOperations.

Enums§

PeerOrigin
Actual origin.
TicketIndexSelector
Allows selecting a range of ticket indices in TicketSelector.
TicketMarker
Different markers for unredeemed tickets. See HoprDbTicketOperations::mark_tickets_as for usage.

Traits§

HoprDbPeersOperations
HoprDbTicketOperations
Database operations for tickets.
HoprNodeDbApi
Complete set of HOPR node database APIs.

Functions§

init_hopr_node_db
Convenience function to initialize the HOPR node database.

Type Aliases§

DbTimestamp
Shorthand for the chrono based timestamp type used in the database.