Skip to content
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
20 changes: 9 additions & 11 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"fmt"
"sync"

ocommon "github.com/blinklabs-io/gouroboros/protocol/common"
"github.com/blinklabs-io/node/chainsync"
"github.com/blinklabs-io/node/connmanager"
"github.com/blinklabs-io/node/event"
Expand All @@ -31,16 +30,15 @@ import (
)

type Node struct {
config Config
connManager *connmanager.ConnectionManager
chainsyncState *chainsync.State
chainsyncBulkRangeEnd ocommon.Point
eventBus *event.EventBus
outboundConns map[ouroboros.ConnectionId]outboundPeer
outboundConnsMutex sync.Mutex
mempool *mempool.Mempool
ledgerState *state.LedgerState
shutdownFuncs []func(context.Context) error
config Config
connManager *connmanager.ConnectionManager
chainsyncState *chainsync.State
eventBus *event.EventBus
outboundConns map[ouroboros.ConnectionId]outboundPeer
outboundConnsMutex sync.Mutex
mempool *mempool.Mempool
ledgerState *state.LedgerState
shutdownFuncs []func(context.Context) error
}

func New(cfg Config) (*Node, error) {
Expand Down