Add share cards
This commit is contained in:
51 files changed
+1193
-239
No files matched your search
@@ -82,7 +82,7 @@ func marginalFeeLost(tpl *bitcoind.BlockTemplate, txid string, txVsize int64) in
|
||||
}
|
||||
|
||||
// The displaced tx's fee is the revenue we lose. We don't add the
|
||||
// boosted tx's real fee back because the pool never had it — the tx
|
||||
// boosted tx's real fee back because the pool never had it, the tx
|
||||
// wasn't in the template before the boost.
|
||||
lost := marginal.Fee
|
||||
if lost < 0 {
|
||||
@@ -261,7 +261,7 @@ func (s *Service) cleanupOnce(ctx context.Context) {
|
||||
for _, tx := range txs {
|
||||
_, err := s.RPC.GetMempoolEntry(ctx, tx.Txid)
|
||||
if err != nil && bitcoind.IsRPCError(err, -5) {
|
||||
// Tx no longer in mempool — confirmed or dropped.
|
||||
// Tx no longer in mempool, confirmed or dropped.
|
||||
if err := s.Store.RemoveBoostedTx(tx.Txid); err != nil {
|
||||
s.Log.Warn("accelerator cleanup: remove failed", "txid", tx.Txid, "err", err)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user