Closed youkaicountry closed 2 years ago
This might be a bit nit-picky, but I'd really like to see a demonstration of this log line:
log.Debugf("Gossiped transaction already in cache - %s from peer %v", util.TransactionString(transaction), msg.ReceivedFrom)
This would ensure that the cache is actually helping prevent what we think it should be preventing.
Other than that, this looks good.
We should also add transactions seen from blocks to the transaction cache.
Resolves #206
Brief description
Adds a transaction cache
Checklist
Demonstration