This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
set -x | |
cd ./example | |
go build \ | |
-gcflags=-trimpath=$GOPATH \ | |
-asmflags=-trimpath=$GOPATH \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/tls" | |
"crypto/x509" | |
"encoding/pem" | |
"fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
finish() { | |
tput sgr0 | |
docker volume prune -f | |
docker container prune -f | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
) |
NewerOlder