public void GiveMoney(string amount, ScannerUser to, params Chain[] chains) { var tx = TestUtils.CreateFakeTx(amount, to.Id); var block = TestUtils.CreateFakeBlock(tx); if (chains != null) { foreach (var c in chains) { var localBlock = block.Clone(); localBlock.Header.HashPrevBlock = c.Tip.Header.GetHash(); c.TrySetTip(localBlock.Header); _Index.Put(localBlock); } } }
internal Transaction GiveMoney(Money amount, params Chain[] chains) { var tx = TestUtils.CreateFakeTx(amount, Address); return(RecieveTransaction(tx, chains)); }