Skip to content

Commit

Permalink
multi: Handle chain ntfn callback in server.
Browse files Browse the repository at this point in the history
This further decouples the block manager from the server by moving the
chain callback code from the block manager to server where it more
naturally belongs since it is not directly related to sync, rather it is
in response to it.

The following is a high level overview of the changes:
- Move blockchain notification callback to server
  - Use instance vars and methods directly on server
- Move funcs and consts only used by callback from blockmanager.go to server.go
- Remove no longer needed methods from peerNotifier interface
  - RelayInventory
  - TransactionConfirmed
- Remove no longer needed fields from blockManagerConfig struct
  - FeeEstimator
  - BgBlkTmplGenerator
  - NotifyWinningTickets
  - PruneRebroadcastInventory
- Move lottery data duplicate filter state to server
- Move block announce duplicate filter state to server
- Misc consistency nits

This is a part of the overall effort to decouple the block manager from
the server so it can be split out into a separate internal netsync
package.
  • Loading branch information
davecgh committed Dec 15, 2020
1 parent de915de commit ccd41c7
Show file tree
Hide file tree
Showing 2 changed files with 446 additions and 482 deletions.
Loading

0 comments on commit ccd41c7

Please sign in to comment.