mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-27 15:53:57 +00:00
rename to follow conventions
This commit is contained in:
parent
c3ef43795b
commit
0428502c44
@ -31,7 +31,7 @@ type server struct {
|
|||||||
pb.UnimplementedKaspawalletdServer
|
pb.UnimplementedKaspawalletdServer
|
||||||
|
|
||||||
rpcClient *rpcclient.RPCClient // RPC client for ongoing user requests
|
rpcClient *rpcclient.RPCClient // RPC client for ongoing user requests
|
||||||
backgroundRpcClient *rpcclient.RPCClient // RPC client dedicated for address and UTXO background fetching
|
backgroundRPCClient *rpcclient.RPCClient // RPC client dedicated for address and UTXO background fetching
|
||||||
params *dagconfig.Params
|
params *dagconfig.Params
|
||||||
|
|
||||||
lock sync.RWMutex
|
lock sync.RWMutex
|
||||||
@ -96,7 +96,7 @@ func Start(params *dagconfig.Params, listen, rpcServer string, keysFilePath stri
|
|||||||
|
|
||||||
serverInstance := &server{
|
serverInstance := &server{
|
||||||
rpcClient: rpcClient,
|
rpcClient: rpcClient,
|
||||||
backgroundRpcClient: backgroundRpcClient,
|
backgroundRPCClient: backgroundRpcClient,
|
||||||
params: params,
|
params: params,
|
||||||
utxosSortedByAmount: []*walletUTXO{},
|
utxosSortedByAmount: []*walletUTXO{},
|
||||||
nextSyncStartIndex: 0,
|
nextSyncStartIndex: 0,
|
||||||
|
|||||||
@ -168,7 +168,7 @@ func (s *server) collectAddresses(start, end uint32) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
getBalancesByAddressesResponse, err := s.backgroundRpcClient.GetBalancesByAddresses(addressSet.strings())
|
getBalancesByAddressesResponse, err := s.backgroundRPCClient.GetBalancesByAddresses(addressSet.strings())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -293,12 +293,12 @@ func (s *server) refreshUTXOs() error {
|
|||||||
// and not in consensus, and between the calls its spending transaction will be
|
// and not in consensus, and between the calls its spending transaction will be
|
||||||
// added to consensus and removed from the mempool, so `getUTXOsByAddressesResponse`
|
// added to consensus and removed from the mempool, so `getUTXOsByAddressesResponse`
|
||||||
// will include an obsolete output.
|
// will include an obsolete output.
|
||||||
mempoolEntriesByAddresses, err := s.backgroundRpcClient.GetMempoolEntriesByAddresses(addresses, true, true)
|
mempoolEntriesByAddresses, err := s.backgroundRPCClient.GetMempoolEntriesByAddresses(addresses, true, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
getUTXOsByAddressesResponse, err := s.backgroundRpcClient.GetUTXOsByAddresses(addresses)
|
getUTXOsByAddressesResponse, err := s.backgroundRPCClient.GetUTXOsByAddresses(addresses)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user