mirror of
https://github.com/corda/corda.git
synced 2025-03-21 19:45:21 +00:00
node: Cash Issue doesn't require notary
This commit is contained in:
parent
2f7b022c8e
commit
86d6ee0110
@ -201,7 +201,7 @@ class WalletMonitorService(net: MessagingService, val smm: StateMachineManager,
|
|||||||
|
|
||||||
// TODO: Make a lightweight protocol that manages this workflow, rather than embedding it directly in the service
|
// TODO: Make a lightweight protocol that manages this workflow, rather than embedding it directly in the service
|
||||||
private fun issueCash(req: ClientToServiceCommand.IssueCash): TransactionBuildResult {
|
private fun issueCash(req: ClientToServiceCommand.IssueCash): TransactionBuildResult {
|
||||||
val builder: TransactionBuilder = TransactionType.General.Builder(notary = req.notary)
|
val builder: TransactionBuilder = TransactionType.General.Builder(notary = null)
|
||||||
val issuer = PartyAndReference(services.storageService.myLegalIdentity, req.issueRef)
|
val issuer = PartyAndReference(services.storageService.myLegalIdentity, req.issueRef)
|
||||||
Cash().generateIssue(builder, req.amount.issuedBy(issuer), req.recipient.owningKey, req.notary)
|
Cash().generateIssue(builder, req.amount.issuedBy(issuer), req.recipient.owningKey, req.notary)
|
||||||
builder.signWith(services.storageService.myLegalIdentityKey)
|
builder.signWith(services.storageService.myLegalIdentityKey)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user