mirror of
https://github.com/corda/corda.git
synced 2025-04-15 06:56:59 +00:00
parent
666b1d0faf
commit
f20e0e7cf1
@ -11,6 +11,7 @@ import net.corda.core.serialization.CordaSerializable
|
||||
import net.corda.core.transactions.LedgerTransaction
|
||||
import net.corda.core.transactions.TransactionBuilder
|
||||
import net.corda.core.utilities.ProgressTracker
|
||||
import co.paralleluniverse.fibers.Suspendable
|
||||
|
||||
|
||||
@StartableByRPC
|
||||
@ -23,7 +24,7 @@ class TestNotaryFlow : FlowLogic<String>() {
|
||||
|
||||
override val progressTracker: ProgressTracker = ProgressTracker(ISSUING, ISSUED, DESTROYING, FINALIZED)
|
||||
|
||||
|
||||
@Suspendable
|
||||
override fun call(): String {
|
||||
val issueBuilder = TransactionBuilder()
|
||||
val notary = serviceHub.networkMapCache.notaryIdentities.first()
|
||||
@ -62,4 +63,4 @@ object NotaryTestCommand : CommandData
|
||||
class NotaryTestContract : Contract {
|
||||
override fun verify(tx: LedgerTransaction) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user