Commit 968ac3e
authored
Wallet maintainer: Resolve deposit script type at the very end (#3719)
The script type resolution requires access to transaction data stored on
the Bitcoin blockchain. If the given transaction hasn't actually
happened but was revealed as deposit to the `Bridge`, the maintainer
will not be able to resolve the deposit script type. So far, an error
was returned in that case and the maintainer stopped the entire deposit
sweep task. This cannot happen as the maintainer can be blocked on
deposit sweeps for a long time. Instead, the maintainer should log an
error and leave the deposit type unresolved.1 file changed
+15
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 120 | | |
134 | 121 | | |
135 | 122 | | |
| |||
172 | 159 | | |
173 | 160 | | |
174 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
0 commit comments