Skip to content

Commit

Permalink
First pass at implementing the "pull" command
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoras committed Feb 10, 2019
1 parent 460f84d commit f5fb66d
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 56 deletions.
2 changes: 1 addition & 1 deletion blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ func (b *Block) dbGetMetaHexBytes(key string) ([]byte, error) {
func (b *Block) dbGetKeyOps() (map[string][]BlockKeyOp, error) {
var count int
if err := b.db.QueryRow("SELECT COUNT(*) FROM _keys").Scan(&count); err != nil {
log.Println("awww, shucks.")
log.Println("Error reading db _keys")
return nil, err
}
keyOps := make(map[string][]BlockKeyOp)
Expand Down
Loading

0 comments on commit f5fb66d

Please sign in to comment.