Skip to content

Commit

Permalink
Add HeartbeatTxn to be ignored during rewinding.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmalouf committed Jan 13, 2025
1 parent c4af024 commit aa75fa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions accounting/rewind.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func AccountAtRound(ctx context.Context, account models.Account, round uint64, d
assetUpdate(&acct, uint64(stxn.Txn.XferAsset), 0, txnrow.Extra.AssetCloseAmount)
}
case sdk.AssetFreezeTx:
case sdk.HeartbeatTx:
default:
err = fmt.Errorf("%s[%d,%d]: rewinding past txn type %s is not currently supported", account.Address, txnrow.Round, txnrow.Intra, stxn.Txn.Type)
return
Expand Down

0 comments on commit aa75fa3

Please sign in to comment.