mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 01:40:07 +01:00
Run go fmt.
This commit is contained in:
parent
d702e37141
commit
444d05eafc
@ -1403,7 +1403,7 @@ func handleSendRawTransaction(s *rpcServer, cmd btcjson.Cmd) (interface{}, error
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// We keep track of all the sendrawtransaction request txs so that we
|
||||
// We keep track of all the sendrawtransaction request txs so that we
|
||||
// can rebroadcast them if they don't make their way into a block.
|
||||
iv := btcwire.NewInvVect(btcwire.InvTypeTx, tx.Sha())
|
||||
s.server.AddRebroadcastInventory(iv)
|
||||
|
@ -752,7 +752,7 @@ func (s *server) NetTotals() (uint64, uint64) {
|
||||
// sent out but have not yet made it into a block. We periodically rebroadcast
|
||||
// them in case our peers restarted or otherwise lost track of them.
|
||||
func (s *server) rebroadcastHandler() {
|
||||
// Wait 5 min before first tx rebroadcast.
|
||||
// Wait 5 min before first tx rebroadcast.
|
||||
timer := time.NewTimer(5 * time.Minute)
|
||||
pendingInvs := make(map[btcwire.InvVect]struct{})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user