mirror of
https://github.com/corda/corda.git
synced 2024-12-23 14:52:29 +00:00
Minor: Unit testing: allow a subset of transactions in a group to be signed.
This commit is contained in:
parent
bdadaffbc0
commit
eb47d8af4d
@ -316,8 +316,8 @@ class TransactionGroupDSL<T : ContractState>(private val stateType: Class<T>) {
|
||||
GraphVisualiser(this as TransactionGroupDSL<ContractState>).display()
|
||||
}
|
||||
|
||||
fun signAll(vararg extraKeys: KeyPair): List<SignedTransaction> {
|
||||
return txns.map { wtx ->
|
||||
fun signAll(txnsToSign: List<WireTransaction> = txns, vararg extraKeys: KeyPair): List<SignedTransaction> {
|
||||
return txnsToSign.map { wtx ->
|
||||
val allPubKeys = wtx.commands.flatMap { it.pubkeys }.toMutableSet()
|
||||
val bits = wtx.serialize()
|
||||
require(bits == wtx.serialized)
|
||||
|
Loading…
Reference in New Issue
Block a user