core.node.services / NodeWalletService / fillWithSomeTestCash

# fillWithSomeTestCash

`fun fillWithSomeTestCash(howMuch: Amount, atLeastThisManyStates: Int = 3, atMostThisManyStates: Int = 10, rng: Random = Random()): Wallet`

Creates a random set of between (by default) 3 and 10 cash states that add up to the given amount and adds them to the wallet.

The cash is self issued with the current nodes identity, as fetched from the storage service. Thus it would not be trusted by any sensible market participant and is effectively an IOU. If it had been issued by the central bank, well ... thatd be a different story altogether.

TODO: Move this out of NodeWalletService