mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 14:50:42 +01:00
Successfully spending a p2pkh spk with TxBuilder
This commit is contained in:
parent
7d1f87bf6f
commit
6bb2a7edf0
1 changed files with 21 additions and 0 deletions
|
@ -0,0 +1,21 @@
|
|||
package org.bitcoins.core.wallet.builder
|
||||
|
||||
sealed abstract class TxBuilderError
|
||||
|
||||
|
||||
|
||||
|
||||
object TxBuilderError {
|
||||
/** This error indicates that the transaction failed to pass the invariants the user wanted to hold
|
||||
* true after the signing process was complete. An example of this is the transaction is too big,
|
||||
* or the fee level was too high or low.
|
||||
*/
|
||||
case object FailedUserInvariants extends TxBuilderError
|
||||
|
||||
/** Means that we gave too many keys for the TxBuilder to use during the signing process for a
|
||||
* utxo. An example of this occurring is if we gave 2 private keys to sign a p2pkh spk.
|
||||
* A p2pkh only requires one private key to sign the utxo.
|
||||
*/
|
||||
case object TooManyKeys extends TxBuilderError
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue