public static Header GetHeader(this IPersistence persistence, uint index) { UInt256 hash = Blockchain.Singleton.GetBlockHash(index); if (hash == null) { return(null); } return(persistence.GetHeader(hash)); }