i'm trying to promote a transaction by using the following code
const spamTransfer = [{address: '9'.repeat(81), value: 0, message: '', tag: ''}]
iota.promoteTransaction(hash, 10, 9, spamTransfer, {interrupt: false, delay: 0});
but i receive this error
Transaction is inconsistent. Reason: tails are not consistent (would lead to inconsistent ledger state or below max depth)