bitcoinj
bitcoinj copied to clipboard
Transaction.coinbase: make complete transactions
- Transaction.coinbase() single factory method that makes a complete tx
- Block: use this method to make genesis blocks
- FakeTxBuilder: use this method to make fake coinbase transactions
In my mind, this method is part of our future transaction builder. And I'd like Builder classes stay flexible and not be limited to single usecases, in this case coinbases with only out output.
In my mind, this method is part of our future transaction builder. And I'd like Builder classes stay flexible and not be limited to single usecases, in this case coinbases with only out output.
We can always add a method that takes a list of outputs (when needed or when we create the actual builder implementation). In the meantime this removes unneeded mutation and helps us identify (see PR #3011) all our use-cases that create Coinbase transactions.
Rebased and force-pushed.