routing/chainview: if column wrapping on comments in neutrino.go
This commit is contained in:
1 file changed
+5
-6
@@ -313,20 +313,19 @@ func (c *CfFilteredChainView) FilterBlock(blockHash *chainhash.Hash) (*FilteredB
|
|||||||
// NOTE: This is part of the FilteredChainView interface.
|
// NOTE: This is part of the FilteredChainView interface.
|
||||||
func (c *CfFilteredChainView) UpdateFilter(ops []wire.OutPoint,
|
func (c *CfFilteredChainView) UpdateFilter(ops []wire.OutPoint,
|
||||||
updateHeight uint32) error {
|
updateHeight uint32) error {
|
||||||
|
|
||||||
log.Debugf("Updating chain filter with new UTXO's: %v", ops)
|
log.Debugf("Updating chain filter with new UTXO's: %v", ops)
|
||||||
|
|
||||||
// First, we'll update the current chain view, by
|
// First, we'll update the current chain view, by adding any new
|
||||||
// adding any new UTXO's, ignoring duplicates in the
|
// UTXO's, ignoring duplicates in the process.
|
||||||
// process.
|
|
||||||
c.filterMtx.Lock()
|
c.filterMtx.Lock()
|
||||||
for _, op := range ops {
|
for _, op := range ops {
|
||||||
c.chainFilter[op] = struct{}{}
|
c.chainFilter[op] = struct{}{}
|
||||||
}
|
}
|
||||||
c.filterMtx.Unlock()
|
c.filterMtx.Unlock()
|
||||||
|
|
||||||
// With our internal chain view update, we'll craft a
|
// With our internal chain view update, we'll craft a new update to the
|
||||||
// new update to the chainView which includes our new
|
// chainView which includes our new UTXO's, and current update height.
|
||||||
// UTXO's, and current update height.
|
|
||||||
rescanUpdate := []neutrino.UpdateOption{
|
rescanUpdate := []neutrino.UpdateOption{
|
||||||
neutrino.AddOutPoints(ops...),
|
neutrino.AddOutPoints(ops...),
|
||||||
neutrino.Rewind(updateHeight),
|
neutrino.Rewind(updateHeight),
|
||||||
|
|||||||
Reference in new issue
Block a user