support_abandon sends new --keep support to same address as the first support being abandoned

This commit is contained in:
Lex Berezhny 2019-03-29 18:00:26 -04:00
parent c4b15920ff
commit 4e6bca1389

View file

@ -2415,10 +2415,7 @@ class Daemon(metaclass=JSONRPCServerType):
if keep > 0: if keep > 0:
outputs = [ outputs = [
Output.pay_support_pubkey_hash( Output.pay_support_pubkey_hash(
keep, supports[0].claim_name, supports[0].claim_id, keep, supports[0].claim_name, supports[0].claim_id, supports[0].pubkey_hash
account.ledger.address_to_hash160(
await account.receiving.get_or_create_usable_address()
)
) )
] ]