Closed zydjohnHotmail closed 1 year ago
Because you have mature coins. A utxo must be at least 101 depth and in your test none has that.
Hi, Thanks for your response. I hope if I understand it correctly: minerRPC.Generate(100); This statement means miner has generated 100 blocks in block height, then how can I find how much money the miner has now, so when I want to send Alice money from miner, I can make sure that miner has enough already mature funds? Can I see it from VS2022 debug window or use some NBitcoin function? Please advise, Thanks,
OK. Thanks, I understand it now!
Hello: I want to run some test for using Nbitcoin.Tests & Nbitcoin.RPC. I created one xUnit Test Project, and some NUGET packages. The following is my code:
using NBitcoin.Tests; using NBitcoin; using Xunit.Abstractions; using NBitcoin.RPC;
namespace IntegrationTest1 { public class UnitTest1 { public ITestOutputHelper Logger { get; }
}
But my test failed: Message: NBitcoin.RPC.RPCException : Insufficient funds
I don’t quite understand, I think the miner has more than enough funds to give to Alice, but the test failed. Let me know how to change the code, so the test can succeed. Thanks,