Skip to content

Commit

Permalink
fix sync block #810376, has 0 amount asset transfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowen committed Jun 13, 2018
1 parent 6254f0a commit edcab12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/bitcoin/chain/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ bool transaction::has_asset_secondary_issue() const
bool transaction::has_asset_transfer() const
{
for (auto& elem: outputs) {
if(elem.is_asset_transfer())
if(elem.is_asset_transfer()
&& elem.get_asset_amount()) // block #810376 has 0 asset transfer without input
return true;
}
return false;
Expand Down

0 comments on commit edcab12

Please sign in to comment.