Add `Proposal.transactionCount`
This commit is contained in:
parent
c4b45c2c2f
commit
c8d0be8404
|
@ -37,6 +37,18 @@ class ProposalUnsafe(
|
||||||
return inner.toByteArray()
|
return inner.toByteArray()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the number of transactions that this proposal will create.
|
||||||
|
*
|
||||||
|
* This is equal to the number of `TransactionSubmitResult`s that will be returned
|
||||||
|
* from `Synchronizer.createProposedTransactions`.
|
||||||
|
*
|
||||||
|
* Proposals always create at least one transaction.
|
||||||
|
*/
|
||||||
|
fun transactionCount(): Int {
|
||||||
|
return inner.stepsCount
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the total fee required by this proposal for its transactions.
|
* Returns the total fee required by this proposal for its transactions.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -33,6 +33,18 @@ class Proposal(
|
||||||
return inner
|
return inner
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the number of transactions that this proposal will create.
|
||||||
|
*
|
||||||
|
* This is equal to the number of `TransactionSubmitResult`s that will be returned
|
||||||
|
* from `Synchronizer.createProposedTransactions`.
|
||||||
|
*
|
||||||
|
* Proposals always create at least one transaction.
|
||||||
|
*/
|
||||||
|
fun transactionCount(): Int {
|
||||||
|
return inner.transactionCount()
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the total fee required by this proposal for its transactions.
|
* Returns the total fee required by this proposal for its transactions.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue