Bitcoin full node and query server

Jan 3, 2019

View in context in the libbitcoin Slack #general mirror.

vdeurzen15:52
I'm trying to calculate the proper fee for a transaction with a bunch of P2PKH inputs and a single P2PHK output. If I calculate the size of the transaction (after adding all inputs, outputs and endorsements) and then modify the output to subtract the fee, the transaction fails to organize. If I calculate the size before adding the endorsements I get a very small total size, which I expect is not correct. Am I going about this the right way? Is there a more straightforward way to do this (given I know the byte_fee_satoshis is correctly configured).