minor doc fixes

This commit is contained in:
Ian Norden 2020-07-12 23:28:05 -05:00
parent 535d8eca71
commit d713cb1ef1
2 changed files with 16 additions and 15 deletions

View File

@ -41,21 +41,21 @@ go-ethereum trie.NodeIterator and state.NodeIterator can be constructed from the
package main
import (
"context"
"context"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/trie"
"github.com/ipfs/go-blockservice"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/trie"
"github.com/ipfs/go-blockservice"
"github.com/ipfs/go-ipfs/core"
"github.com/ipfs/go-ipfs/repo/fsrepo"
"github.com/jmoiron/sqlx"
"github.com/vulcanize/ipfs-ethdb"
"github.com/jmoiron/sqlx"
"github.com/vulcanize/ipfs-ethdb"
)
func main() {
// errors are ignored for brevity
ipfsPath := "~/.ipfs"
// errors are ignored for brevity
ipfsPath := "~/.ipfs"
r, _ := fsrepo.Open(ipfsPath)
ctx := context.Background()
cfg := &core.BuildCfg{
@ -77,6 +77,8 @@ func main() {
}
```
[Types are also available](./postgres/doc.md) for interfacing directly with the data stored in an IPFS-backing Postgres database
## Maintainers
@vulcanize
@AFDudley

View File

@ -14,12 +14,11 @@ employ it as you would the blockservice-based ethdbs.
package main
import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/state/snapshot"
"github.com/ethereum/go-ethereum/trie"
"github.com/jmoiron/sqlx"
"github.com/vulcanize/ipfs-ethdb/postgres"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/trie"
"github.com/jmoiron/sqlx"
"github.com/vulcanize/ipfs-ethdb/postgres"
)
func main() {