Beispiel #1
0
 def start(self):
     TailableProc.start(self)
     self.wait_for_logs([
         "revaultd started on network regtest",
         "bitcoind now synced",
         "JSONRPC server started",
         "Signature fetcher thread started",
     ])
Beispiel #2
0
def test_sigfetcher(revault_network, bitcoind, executor):
    rn = revault_network
    rn.deploy(7, 3, n_stkmanagers=2)
    # First of all, activate a vault
    vault = revault_network.fund(0.05)
    revault_network.secure_vault(vault)
    revault_network.activate_vault(vault)

    # Stopping revaultd, deleting the database
    for w in rn.participants():
        w.stop()
        datadir_db = os.path.join(w.datadir_with_network, "revaultd.sqlite3")
        os.remove(datadir_db)

    # Starting revaultd again
    for w in rn.participants():
        # Manually starting it so that we can check that
        # the db is being created again
        TailableProc.start(w)
        w.wait_for_logs([
            "No database at .*, creating a new one",
            "revaultd started on network regtest",
            "bitcoind now synced",
            "JSONRPC server started",
            "Signature fetcher thread started",
        ])

    # They should all get back to the 'active' state, pulling sigs from the coordinator
    for w in rn.participants():
        w.wait_for_log("Got a new unconfirmed deposit")
        wait_for(lambda: len(w.rpc.listvaults(["funded"], [])) == 1)
    for w in rn.stks():
        w.wait_for_logs([
            "Syncing Unvault Emergency signature",
            "Syncing Emergency signature",
            "Syncing Cancel signature",
            "Syncing Unvault signature",
        ])
    for w in rn.man_wallets:
        w.wait_for_logs([
            "Syncing Cancel signature",
            "Syncing Unvault signature",
        ])
Beispiel #3
0
 def start(self):
     TailableProc.start(self)
     self.wait_for_log("Started cosignerd daemon")
Beispiel #4
0
 def start(self):
     TailableProc.start(self)
     self.wait_for_logs([
         "bitcoind now synced", "Listener thread started",
         "Started miradord."
     ])
Beispiel #5
0
    def start(self):
        TailableProc.start(self)
        self.wait_for_log("Done loading", timeout=TIMEOUT)

        logging.info("BitcoinD started")
Beispiel #6
0
 def start(self):
     TailableProc.start(self)
     self.wait_for_logs(["Started revault_coordinatord"])