Example #1
0
def reincarnatedCLI(nodeRegsForCLI, newLooper, tdir, cli):
    """
    Creating a new cli instance is equivalent to starting and stopping a cli
    """
    cli = newCLI(nodeRegsForCLI, newLooper, tdir, unique_name='reincarnate')
    yield cli
    cli.close()
def cli2(cliLooper, tdir, tdirWithClientPoolTxns, tdirWithNodeKeepInited,
         tconf):
    tempDir = os.path.join(tdirWithClientPoolTxns, "cl2")
    initDirWithGenesisTxns(tempDir, tconf, tdirWithClientPoolTxns)
    cli = newCLI(cliLooper, tempDir, tempDir)
    yield cli
    cli.close()
def cli1(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
         tdirWithNodeKeepInited, tconf):
    tempDir = os.path.join(tdir, "cl1")
    initDirWithGenesisTxns(tempDir, tconf, tdirWithPoolTxns,
                           tdirWithDomainTxns)
    cli = newCLI(cliLooper, tempDir)
    yield cli
    cli.close()
Example #4
0
def cli(tdir, cliLooper, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithClientPoolTxns, tdirWithNodeKeepInited):
    cli = newCLI(cliLooper,
                 tdirWithClientPoolTxns,
                 tdirWithPoolTxns,
                 nodes_chroot=tdir)
    yield cli
    cli.close()
Example #5
0
def aliceCli(tdir, cliLooper, tdirWithPoolTxns, tdirWithDomainTxns,
             tdirWithClientPoolTxns, tdirWithNodeKeepInited):
    cli = newCLI(cliLooper,
                 tdirWithClientPoolTxns,
                 tdirWithPoolTxns,
                 nodes_chroot=tdir,
                 unique_name='alice')
    yield cli
    cli.close()
Example #6
0
def cli1(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithNodeKeepInited, tconf):
    tempDir = os.path.join(tdir, "cl1")
    initDirWithGenesisTxns(tempDir, tconf, tdirWithPoolTxns, tdirWithDomainTxns)
    return newCLI(cliLooper, tempDir)
Example #7
0
def cli(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithNodeKeepInited):
    cli = newCLI(cliLooper, tdir)
    yield cli
    cli.close()
Example #8
0
def reincarnatedCLI(nodeRegsForCLI, newLooper, tdir, cli):
    """
    Creating a new cli instance is equivalent to starting and stopping a cli
    """
    return newCLI(nodeRegsForCLI, newLooper, tdir)
Example #9
0
def cli2(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
         tdirWithNodeKeepInited, tconf):
    tempDir = os.path.join(tdir, "cl2")
    initDirWithGenesisTxns(tempDir, tconf, tdirWithPoolTxns,
                           tdirWithDomainTxns)
    return newCLI(cliLooper, tempDir)
Example #10
0
def cli(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithNodeKeepInited):
    return newCLI(cliLooper, tdir)
Example #11
0
def cli(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
        tdirWithNodeKeepInited):
    return newCLI(cliLooper, tdir)
Example #12
0
def aliceCli(cliLooper, tdir, tdirWithPoolTxns, tdirWithDomainTxns,
             tdirWithNodeKeepInited):
    return newCLI(cliLooper, tdir, unique_name='alice')
Example #13
0
def reincarnatedCLI(nodeRegsForCLI, newLooper, tdir, cli):
    """
    Creating a new cli instance is equivalent to starting and stopping a cli
    """
    return newCLI(nodeRegsForCLI, newLooper, tdir)