public void Initialize() { system = TestBlockchain.TheVauthSystem; senderProbe = CreateTestProbe(); txSample = new Transaction() { Attributes = Array.Empty <TransactionAttribute>(), Script = Array.Empty <byte>(), Signers = new Signer[] { new Signer() { Account = UInt160.Zero } }, Witnesses = Array.Empty <Witness>() }; system.MemPool.TryAdd(txSample, TestBlockchain.GetTestSnapshot()); }
public void Setup() { VauthSystem = TestBlockchain.TheVauthSystem; }
public static void TestSetup(TestContext ctx) { testBlockchain = TestBlockchain.TheVauthSystem; }
public void TransactionsRemoved(VauthSystem system, MemoryPoolTxRemovalReason reason, IEnumerable <Transaction> transactions) { }
public void TransactionAdded(VauthSystem system, Transaction tx) { }
public void Init() { testBlockchain = TestBlockchain.TheVauthSystem; }
static TestBlockchain() { Console.WriteLine("initialize VauthSystem"); TheVauthSystem = new VauthSystem(ProtocolSettings.Default, null, null); }
internal static Props Props(VauthSystem system) { return(Akka.Actor.Props.Create(() => new TransactionRouter(system)).WithRouter(new SmallestMailboxPool(Environment.ProcessorCount))); }
public TransactionRouter(VauthSystem system) { this.system = system; }