Skip to content

Instantly share code, notes, and snippets.

diff --git isaac/block/localfs_writer.go isaac/block/localfs_writer.go
index 9bdfa2b9..d963da88 100644
--- isaac/block/localfs_writer.go
+++ isaac/block/localfs_writer.go
@@ -146,6 +146,7 @@ func (w *LocalFSWriter) SetOperationsTree(ctx context.Context, tw *fixedtree.Wri
func(ctx context.Context, _ uint64) error {
_ = w.opsf.Close()
+ if l := atomic.LoadUint64(&w.lenops); l > 0 {
if err := w.m.SetItem(NewLocalBlockMapItem(
diff --git isaac/block/localfs_writer.go isaac/block/localfs_writer.go
index 9bdfa2b9..eda6c126 100644
--- isaac/block/localfs_writer.go
+++ isaac/block/localfs_writer.go
@@ -15,7 +15,6 @@ import (
"strconv"
"strings"
"sync"
- "sync/atomic"
#!/bin/sh
set -e
set -x
cd ./example
go build \
-gcflags=-trimpath=$GOPATH \
-asmflags=-trimpath=$GOPATH \
diff --git a/base/address_decoder.go b/base/address_decoder.go
index b7a4b5fb..2443ca70 100644
--- a/base/address_decoder.go
+++ b/base/address_decoder.go
@@ -11,6 +11,10 @@ type AddressDecoder struct {
}
func (ad *AddressDecoder) Encode(enc encoder.Encoder) (Address, error) {
+ if ad == nil {
+ return nil, nil
package main
import (
"bytes"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"encoding/pem"
"fmt"
#!/bin/bash
#set -x
finish() {
tput sgr0
docker volume prune -f
docker container prune -f
}
diff --git a/base/node/errors.go b/base/node/errors.go
new file mode 100644
index 0000000..c66df3b
--- /dev/null
+++ b/base/node/errors.go
@@ -0,0 +1,23 @@
+package node
+
+import "github.com/spikeekips/mitum/base"
+
@spikeekips
spikeekips / go.mod
Last active July 21, 2021 03:22
mitum discovery command
module discovery
go 1.16
replace github.com/hashicorp/memberlist => /workspace/mitum/tmp/memberlist
replace github.com/spikeekips/mitum => /workspace/mitum/src
require (
github.com/alecthomas/kong v0.2.17
@spikeekips
spikeekips / go.mod
Created May 25, 2021 18:38
sebak operations until 2232370
module sebak/blocks
go 1.16
require (
boscoin.io/sebak v0.0.0
github.com/kr/pretty v0.2.1 // indirect
github.com/rs/zerolog v1.22.0
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
)
@spikeekips
spikeekips / go.mod
Last active May 17, 2021 10:57
quic client cli of mitum
module quic-client
go 1.16
require (
github.com/alecthomas/kong v0.2.16
github.com/lucas-clemente/quic-go v0.20.1
github.com/spikeekips/mitum v0.0.0-20210510103419-d223a7e16a42
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
)