storage: begin implementing sqlite3 storage

This commit is contained in:
George Tankersley
2018-11-18 03:02:49 +00:00
parent 7cc7095a81
commit 0dee0b425e
9 changed files with 158 additions and 3 deletions

View File

@@ -35,6 +35,15 @@ func (b *block) getEncodableHash() []byte {
return b.hdr.getEncodableHash()
}
func (b *block) HasSaplingTransactions() bool {
for _, tx := range b.vtx {
if tx.HasSaplingTransactions() {
return true
}
}
return false
}
// GetHeight() extracts the block height from the coinbase transaction. See
// BIP34. Returns block height on success, or -1 on error.
func (b *block) GetHeight() int {