Set Jsonrpc string when manually creating json messages.
This commit is contained in:
parent
b495842b0e
commit
3d6ad329d0
1 changed files with 2 additions and 2 deletions
|
@ -373,7 +373,7 @@ func reqTxsForAddress(addr string) {
|
||||||
seq.Unlock()
|
seq.Unlock()
|
||||||
|
|
||||||
m := &btcjson.Message{
|
m := &btcjson.Message{
|
||||||
Jsonrpc: "",
|
Jsonrpc: "1.0",
|
||||||
Id: fmt.Sprintf("btcwallet(%v)", n),
|
Id: fmt.Sprintf("btcwallet(%v)", n),
|
||||||
Method: "rescanforutxo",
|
Method: "rescanforutxo",
|
||||||
Params: []interface{}{
|
Params: []interface{}{
|
||||||
|
@ -402,7 +402,7 @@ func reqUtxoForAddress(addr string) {
|
||||||
seq.Unlock()
|
seq.Unlock()
|
||||||
|
|
||||||
m := &btcjson.Message{
|
m := &btcjson.Message{
|
||||||
Jsonrpc: "",
|
Jsonrpc: "1.0",
|
||||||
Id: fmt.Sprintf("btcwallet(%d)", n),
|
Id: fmt.Sprintf("btcwallet(%d)", n),
|
||||||
Method: "requestutxos",
|
Method: "requestutxos",
|
||||||
Params: []interface{}{
|
Params: []interface{}{
|
||||||
|
|
Loading…
Reference in a new issue