mirror of
https://github.com/corda/corda.git
synced 2025-05-31 22:50:53 +00:00
Change places in code where instead of transaction id hash is used.
This commit is contained in:
parent
6b5ad92f9b
commit
e823e11e85
@ -32,7 +32,7 @@ data class SignedTransaction(val txBits: SerializedBytes<WireTransaction>,
|
|||||||
val tx: WireTransaction by lazy { WireTransaction.deserialize(txBits) }
|
val tx: WireTransaction by lazy { WireTransaction.deserialize(txBits) }
|
||||||
|
|
||||||
/** A transaction ID is the hash of the [WireTransaction]. Thus adding or removing a signature does not change it. */
|
/** A transaction ID is the hash of the [WireTransaction]. Thus adding or removing a signature does not change it. */
|
||||||
override val id: SecureHash get() = txBits.hash
|
override val id: SecureHash get() = tx.id
|
||||||
|
|
||||||
class SignaturesMissingException(val missing: Set<PublicKey>, val descriptions: List<String>, override val id: SecureHash) : NamedByHash, SignatureException() {
|
class SignaturesMissingException(val missing: Set<PublicKey>, val descriptions: List<String>, override val id: SecureHash) : NamedByHash, SignatureException() {
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
|
@ -250,7 +250,7 @@ data class TestLedgerDSLInterpreter private constructor (
|
|||||||
labelToOutputStateAndRefs[label] = wireTransaction.outRef(index)
|
labelToOutputStateAndRefs[label] = wireTransaction.outRef(index)
|
||||||
}
|
}
|
||||||
|
|
||||||
transactionMap[wireTransaction.serialized.hash] =
|
transactionMap[wireTransaction.id] =
|
||||||
WireTransactionWithLocation(transactionLabel, wireTransaction, transactionLocation)
|
WireTransactionWithLocation(transactionLabel, wireTransaction, transactionLocation)
|
||||||
|
|
||||||
return wireTransaction
|
return wireTransaction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user