You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
86278c0 Add 'submitblock' RPC call. (Elias Rohrer)
Pull request description:
I added two methods to submit raw and hex-encoded blocks via RPC calls.
Submitting blocks works, as tested in regtest mode. However, in case of success it currently yields the `Result`:
```
Err(JsonRpc(Json(Error("invalid type: null, expected a string", line: 0, column: 0))))
```
I think this happens because `submitblock` returns `null` in case of success (see [BIP022](https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki)).
Any suggestions how I should handle that?
ACKs for top commit:
shesek:
ACK 86278c0. Would be great to have this in :)
Tree-SHA512: 7b8632fef5e829a8a9923adddeaf80e51c236dcd2963f147f7ca620aff00c0c1e84bdd2ffdf74263ece224c2e330774da5d070a674cf4c7e4235de5f25c6dd8a
0 commit comments