use TXORef.hash instead of TXORef.id when signing claim with channel

This commit is contained in:
Lex Berezhny 2019-04-19 08:57:10 -04:00
parent 35c43647aa
commit 90bef98bc3

View file

@ -114,7 +114,7 @@ class Output(BaseOutput):
self.channel = channel
self.claim.signing_channel_hash = channel.claim_hash
digest = sha256(b''.join([
first_input_id or self.tx_ref.tx.inputs[0].txo_ref.id.encode(),
first_input_id or self.tx_ref.tx.inputs[0].txo_ref.hash,
self.claim.signing_channel_hash,
self.claim.to_message_bytes()
]))