Commit 63df5d8
feat(ffi): add dash_spv_ffi_config_clear_peers to remove default peers
When creating an SPV config for regtest, a default peer at
127.0.0.1:19899 is added. This doesn't match dashmate's Docker
setup which maps Core P2P to different ports (e.g. 20001). FFI
consumers (iOS/Swift) couldn't clear these defaults before adding
their own peers, causing the SPV client to enter exclusive mode
with a dead peer alongside the intended one.
Adds dash_spv_ffi_config_clear_peers() so FFI consumers can remove
default peers before adding custom ones via add_peer.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent fcdffa7 commit 63df5d8
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
169 | 188 | | |
170 | 189 | | |
171 | 190 | | |
| |||
0 commit comments