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());
 }
Exemple #2
0
 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)
 {
 }
Exemple #6
0
 public void Init()
 {
     testBlockchain = TestBlockchain.TheVauthSystem;
 }
Exemple #7
0
 static TestBlockchain()
 {
     Console.WriteLine("initialize VauthSystem");
     TheVauthSystem = new VauthSystem(ProtocolSettings.Default, null, null);
 }
Exemple #8
0
 internal static Props Props(VauthSystem system)
 {
     return(Akka.Actor.Props.Create(() => new TransactionRouter(system)).WithRouter(new SmallestMailboxPool(Environment.ProcessorCount)));
 }
Exemple #9
0
 public TransactionRouter(VauthSystem system)
 {
     this.system = system;
 }