Examples of verifyPledge()


Examples of lighthouse.protocol.Project.verifyPledge()

        assertTrue(flags[1]);

        Transaction contract = project.completeContract(ImmutableSet.of(commit));
        assertEquals(contract.getInput(0).duplicateDetached(), pledge.pledge.getInput(0).duplicateDetached());
        List<TransactionOutput> outputs = ImmutableList.of(checkNotNull(pledge.pledge.getInput(0).getConnectedOutput()).duplicateDetached());
        project.verifyPledge(outpoint -> CompletableFuture.completedFuture(outputs), commit).get();
    }

    @Test
    public void pledgeImperfectSize() throws Exception {
        // Form a pledge that requires a new output to be created by the wallet (the dependency), so we have a correctly
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.