Skip to content

Commit

Permalink
Remove topAccountListener (#5027)
Browse files Browse the repository at this point in the history
  • Loading branch information
winder authored Jan 19, 2023
1 parent 75e42aa commit 724633a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 596 deletions.
11 changes: 0 additions & 11 deletions logging/telemetryspec/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,6 @@ type BlockAcceptedEventDetails struct {
VoteBufLen uint64
}

// TopAccountsEvent event
const TopAccountsEvent Event = "TopAccounts"

// TopAccountEventDetails contains details for the BlockAcceptedEvent
type TopAccountEventDetails struct {
Round uint64
OnlineAccounts []map[string]interface{}
OnlineCirculation uint64
OfflineCirculation uint64
}

// AccountRegisteredEvent event
const AccountRegisteredEvent Event = "AccountRegistered"

Expand Down
5 changes: 0 additions & 5 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ func MakeFull(log logging.Logger, rootDir string, cfg config.Local, phonebookAdd
p2pNode.SetPrioScheme(node)
node.net = p2pNode

accountListener := makeTopAccountListener(log)

// load stored data
genesisDir := filepath.Join(rootDir, genesis.ID())
ledgerPathnamePrefix := filepath.Join(genesisDir, config.LedgerFilenamePrefix)
Expand Down Expand Up @@ -232,9 +230,6 @@ func MakeFull(log logging.Logger, rootDir string, cfg config.Local, phonebookAdd
node,
}

if node.config.EnableTopAccountsReporting {
blockListeners = append(blockListeners, &accountListener)
}
node.ledger.RegisterBlockListeners(blockListeners)
txHandlerOpts := data.TxHandlerOpts{
TxPool: node.transactionPool,
Expand Down
212 changes: 0 additions & 212 deletions node/topAccountListener.go

This file was deleted.

Loading

0 comments on commit 724633a

Please sign in to comment.