public bool ContainsHeader(UInt256 blockHash)
{
CheckTransaction();
using (SetSessionContext())
{
Api.JetSetCurrentIndex(this.jetSession, this.headersTableId, "IX_BlockHash");
Api.MakeKey(this.jetSession, this.headersTableId, DbEncoder.EncodeUInt256(blockHash), MakeKeyGrbit.NewKey);
return Api.TrySeek(this.jetSession, this.headersTableId, SeekGrbit.SeekEQ);
}
}