Skip to content

Semana 2: bitcoineando#73

Open
esixce wants to merge 1 commit intoLibreriadeSatoshi:mainfrom
esixce:semana2-bitcoineando
Open

Semana 2: bitcoineando#73
esixce wants to merge 1 commit intoLibreriadeSatoshi:mainfrom
esixce:semana2-bitcoineando

Conversation

@esixce
Copy link

@esixce esixce commented Feb 24, 2026

Solución ejercicio semana 2 — bitcoineando

Script bash que demuestra la incompatibilidad de RBF y CPFP:

  1. Crea wallets Miner y Trader, fondea Miner con 150 BTC
  2. Construye parent tx raw con 2 inputs (50+50 BTC), RBF señalado (sequence=1)
  3. Firma y transmite sin confirmar
  4. Consulta mempool, construye JSON con inputs/outputs/fees/weight
  5. Crea child tx (CPFP) gastando el cambio del parent
  6. getmempoolentry del child (muestra ancestorcount=2, depends=[parent])
  7. Reemplaza el parent con RBF (+10000 sats de fee)
  8. getmempoolentry del child → "Transaction not in mempool"
  9. Explica por qué: al reemplazar el parent, el child pierde su input y es expulsado

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant