Add debug logging to TicketInfo RPC. (#208)

This commit is contained in:
Jamie Holdstock 2020-11-21 16:12:29 -06:00 committed by GitHub
parent 1c6f962e2b
commit 4f8b3c79eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,6 +201,9 @@ func (c *WalletRPC) TicketInfo(startHeight int64) (map[string]*wallettypes.Ticke
return nil, err
}
log.Debugf("TicketInfo RPC returned %d tickets (wallet=%s, startHeight=%d)",
len(result), c.String(), startHeight)
// For easier access later on, store the tickets in a map using their hash
// as the key.
tickets := make(map[string]*wallettypes.TicketInfoResult, len(result))