Skip to content

Instantly share code, notes, and snippets.

2020-08-26T16:41:34.749-0700 INFO main lotus/daemon.go:166 lotus repo: /home/steb/.lotus
2020-08-26T16:41:34.750-0700 INFO build [email protected]/paramfetch.go:138 Parameter file /var/tmp/filecoin-proof-parameters/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-0170db1f394b35d995252228ee359194b13199d259380541dc529fb0099096b0.vk is ok
2020-08-26T16:41:34.750-0700 INFO build [email protected]/paramfetch.go:138 Parameter file /var/tmp/filecoin-proof-parameters/v28-stacked-proof-of-replication-merkletree-poseidon_hasher-8-0-0-sha256_hasher-ecd683648512ab1765faa2a5f14bab48f676e633467f0aa8aad4b55dcb0652bb.vk is ok
2020-08-26T16:41:34.750-0700 INFO build [email protected]/paramfetch.go:138 Parameter file /var/tmp/filecoin-proof-parameters/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-5294475db5237a2e83c3e52fd6c2b03859a1831d45ed08c4f35dbf9a803165a9.vk is ok
2020-08-26T16:41:34.750-07
@Stebalien
Stebalien / go-ipfs-api-0.5.0.md
Created March 6, 2020 21:45
WIP docs for 0.5.0 API
title weight menu
HTTP API
20
reference
parent
api
  1. Install chrome/chromium (this was tested on Chromium 77.0.3865.90 Arch Linux).
  2. Download this gist.
  3. Run test.sh.
#!/usr/bin/env -S emacs --script
;; Sandbox
(setq
user-emacs-directory (concat (file-name-directory load-file-name) ".emacs/")
package-user-dir (concat user-emacs-directory "elpa/")
use-package-always-ensure t
inhibit-message t) ; if there are errors, remove this.
; debug-on-error t) ; if there are errors, add this.
package fs
import (
"context"
"errors"
"io"
"os"
"sync"
"github.com/ipfs/go-unixfs"
diff --git a/go.mod b/go.mod
index 54baad7..d1a2acd 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,7 @@
module github.com/libp2p/go-libp2p-transport-upgrader
require (
+ github.com/Stebalien/go-dbuf v0.0.0-20190510190534-6db3381d14ea
github.com/ipfs/go-log v0.0.1
github.com/ipfs/go-ipfs@(devel)
bazil.org/[email protected]
github.com/AndreasBriese/[email protected]
github.com/Kubuxu/[email protected]
github.com/Stebalien/[email protected]
github.com/beorn7/[email protected]
github.com/bren2010/[email protected]
github.com/btcsuite/[email protected]
github.com/cenkalti/[email protected]+incompatible
github.com/cheekybits/[email protected]
goroutine 17142691 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:311 fp=0xc038400850 sp=0xc038400848 pc=0x96fbf0
runtime.(*mheap).alloc(0x2649a60, 0x1, 0x7f9b58010006, 0x4)
/usr/local/go/src/runtime/mheap.go:1047 +0x8a fp=0xc0384008a0 sp=0xc038400850 pc=0x9388da
runtime.(*mcentral).grow(0x2649f60, 0x0)
/usr/local/go/src/runtime/mcentral.go:256 +0x95 fp=0xc0384008e8 sp=0xc0384008a0 pc=0x92b815
runtime.(*mcentral).cacheSpan(0x2649f60, 0x30)
/usr/local/go/src/runtime/mcentral.go:106 +0x2ff fp=0xc038400948 sp=0xc0384008e8 pc=0x92b31f
runtime.(*mcache).refill(0x7f9b7e09c008, 0x106)
diff --git a/mount/mount.go b/mount/mount.go
index 9d26f46..561a943 100644
--- a/mount/mount.go
+++ b/mount/mount.go
@@ -122,22 +122,36 @@ func (d *Datastore) Delete(key ds.Key) error {
}
func (d *Datastore) Query(q query.Query) (query.Results, error) {
- if len(q.Filters) > 0 ||
- len(q.Orders) > 0 ||
#!/bin/bash
REPO="$(mktemp -d)"
IPFS_PATH="$REPO"
cleanup() {
rm -rf "$REPO"
wait
}