Browse Source

Rename RPCCall to RPC

xno
codesoap 2 years ago
parent
commit
ba058c0898
  1. 2
      balance.go
  2. 2
      change.go
  3. 2
      process.go
  4. 2
      send.go

2
balance.go

@ -101,7 +101,7 @@ func receivePendingSends(info accountInfo, privateKey *big.Int) (updatedBalance @@ -101,7 +101,7 @@ func receivePendingSends(info accountInfo, privateKey *big.Int) (updatedBalance
Subtype: "receive",
Block: block,
}
if err = doProcessRPCCall(process); err != nil {
if err = doProcessRPC(process); err != nil {
return
}

2
change.go

@ -60,5 +60,5 @@ func changeRepresatativeOfAccount(info accountInfo, representative string, priva @@ -60,5 +60,5 @@ func changeRepresatativeOfAccount(info accountInfo, representative string, priva
Subtype: "change",
Block: block,
}
return doProcessRPCCall(process)
return doProcessRPC(process)
}

2
process.go

@ -16,7 +16,7 @@ type processResponse struct { @@ -16,7 +16,7 @@ type processResponse struct {
Error string `json:"error"`
}
func doProcessRPCCall(process process) error {
func doProcessRPC(process process) error {
var requestBody, responseBytes []byte
requestBody, err := json.Marshal(process)
if err != nil {

2
send.go

@ -70,7 +70,7 @@ func sendFundsToAccount(info accountInfo, amount, recipient string, privateKey * @@ -70,7 +70,7 @@ func sendFundsToAccount(info accountInfo, amount, recipient string, privateKey *
Subtype: "send",
Block: block,
}
return doProcessRPCCall(process)
return doProcessRPC(process)
}
// getBalanceAfterSend expects oldBalance to be raw and amount to be

Loading…
Cancel
Save