Commit 6cb5913
committed
Merge #393: multi-Cancel revaultd
ae94b9a Adapt the doc single-cancel wording to multi-cancel (Antoine Poinsot)
32a7ec5 db: remove the db_cancel_transaction routine (Antoine Poinsot)
9465c35 commands: adapt the result of 'listpresignedtxs' to multiple Cancel txs (Antoine Poinsot)
ae2839d commands: remove the unit test of listpresigned txs (Antoine Poinsot)
5caa118 commands: update [get,set]revocationtxs flow for all Cancel transactions (Antoine Poinsot)
175478b qa: update miradord and cosignerd to the new message serialization (Antoine Poinsot)
f5a2162 Share all Cancel transactions' signatures with the watchtowers (Antoine Poinsot)
74c2f1c rpc: over-simplified adaptation of 'revault' command to multi-Cancel (Antoine Poinsot)
8683a03 poller: notice any possible Cancel when an Unvault is spent. (Antoine Poinsot)
a0585c5 poller: adapt Cancel rebroadcast to multi-Cancel (Antoine Poinsot)
30d2d20 poller: adapt Cancel confirmation tracking to multi-Cancel (Antoine Poinsot)
effb3f7 bitcoind: store all the Cancel transactions on vault confirmation (Antoine Poinsot)
b9b1727 db: simplify the unsigned presigned txs storage (Antoine Poinsot)
410a627 Update revault_tx and revault_net (Antoine Poinsot)
Pull request description:
This implements revault/practical-revault#119.
We adapt all components to use multi-Cancel:
- Sharing and fetching the signatures for all the Cancel transactions
- Monitoring the chain for any of the Cancel transaction
- Changing the various interfaces to have all Cancel transactions instead of a single one
Feedback on the new RPC API would be welcome: i preferred a list of Cancel instead of a mapping from feerate to Cancel.
We still don't chose the Cancel to broadcast depending on the fee estimation in `revault`.
ACKs for top commit:
edouardparis:
ACK ae94b9a
Tree-SHA512: cb2e1b5a13f84188be7897a239b045b5a6ac307af8f9843cc56d689f51d50decf5510b1ea52c3832bed5b937f6a788e555c46bf04a2612553c5ba89fcaacfe4fFile tree
20 files changed
+633
-865
lines changed- doc
- src
- bitcoind
- commands
- database
- jsonrpc
- tests
- servers
- test_framework
20 files changed
+633
-865
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
270 | 272 | | |
271 | 273 | | |
272 | 274 | | |
| |||
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
281 | | - | |
| 283 | + | |
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| |||
438 | 440 | | |
439 | 441 | | |
440 | 442 | | |
441 | | - | |
442 | | - | |
| 443 | + | |
443 | 444 | | |
444 | 445 | | |
445 | | - | |
| 446 | + | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
| |||
832 | 833 | | |
833 | 834 | | |
834 | 835 | | |
835 | | - | |
836 | | - | |
837 | | - | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
838 | 840 | | |
839 | 841 | | |
840 | 842 | | |
| |||
1111 | 1113 | | |
1112 | 1114 | | |
1113 | 1115 | | |
1114 | | - | |
| 1116 | + | |
1115 | 1117 | | |
1116 | 1118 | | |
1117 | 1119 | | |
| |||
1135 | 1137 | | |
1136 | 1138 | | |
1137 | 1139 | | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1142 | 1147 | | |
1143 | 1148 | | |
1144 | | - | |
| 1149 | + | |
| 1150 | + | |
1145 | 1151 | | |
1146 | 1152 | | |
1147 | 1153 | | |
| |||
1154 | 1160 | | |
1155 | 1161 | | |
1156 | 1162 | | |
1157 | | - | |
1158 | | - | |
| 1163 | + | |
| 1164 | + | |
1159 | 1165 | | |
1160 | 1166 | | |
1161 | | - | |
1162 | | - | |
| 1167 | + | |
| 1168 | + | |
1163 | 1169 | | |
1164 | 1170 | | |
1165 | 1171 | | |
| |||
1285 | 1291 | | |
1286 | 1292 | | |
1287 | 1293 | | |
1288 | | - | |
| 1294 | + | |
| 1295 | + | |
1289 | 1296 | | |
1290 | 1297 | | |
1291 | 1298 | | |
| |||
1383 | 1390 | | |
1384 | 1391 | | |
1385 | 1392 | | |
1386 | | - | |
| 1393 | + | |
1387 | 1394 | | |
1388 | 1395 | | |
1389 | 1396 | | |
| |||
1403 | 1410 | | |
1404 | 1411 | | |
1405 | 1412 | | |
1406 | | - | |
| 1413 | + | |
1407 | 1414 | | |
1408 | 1415 | | |
1409 | 1416 | | |
| |||
0 commit comments