CoiniumServ
CoiniumServ copied to clipboard
[Error] [PaymentProcessor] An error occurred while trying to execute payment; "Account has insufficient funds"
@bonesoul
How I get a pool wallet balance instead get a balance from "" I found that IDaemon defined a Getblance from "" instead defined pool wallet, which caused an issue that "Account has insufficient funds" error by the payment processor.
The errors Error] [PaymentProcessor] An error occurred while trying to execute payment; "Account has insufficient funds"
The related code seems here and paymentprocessor.cs.
IDaemonClient.cs decimal GetBalance(string account = "");
DaemonClients.cs
///
Regards, John Ahn
@jeong760
That function simply initializes and sets the expected param account to null if nothing is passed to it when called. It allows the function to run it's course properly if account is not set, which when called would be passed null. That function is proper, The account value that is passed to it is either the wallet address set in pool config or the default wallet address, which will be obtained, if useDefaultAccount is set in coin config.