public bool TryRemoveBlockSpentTxes(int blockIndex)
{
CheckWriteTransaction();
using (SetSessionContext())
{
Api.JetSetCurrentIndex(this.jetSession, this.spentTxTableId, "IX_SpentBlockIndex");
Api.MakeKey(this.jetSession, this.spentTxTableId, blockIndex, MakeKeyGrbit.NewKey);
if (Api.TrySeek(this.jetSession, this.spentTxTableId, SeekGrbit.SeekEQ))
{
Api.JetDelete(this.jetSession, this.spentTxTableId);
return true;
}
else
{
return false;
}
}
}