Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build-and-test

on:
push:
branches: [community-dev, main]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.25"]
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

# NOTE: the tree needs -mod=mod because the released vendor/ tree is
# incomplete (no vendor/modules.txt) and go.mod pins the jrpc2/readline
# versions that actually provide the APIs the code uses.
- name: Build
run: |
go build ./...

- name: Run DVM intrinsic tests
run: |
go test ./dvm/ -run 'TestVerifySig|TestHashToPoint|TestPedersenCommit|TestAssetBalance|TestEcAdd' -v

- name: Run K0 tests
run: |
go test ./blockchain/ -run 'TestK0' -v
go test ./walletapi/ -run 'TestK0' -v

- name: Run conformance suite
run: |
go test ./tests/vectors/ -run 'TestConformance|TestG2P0|TestK0' -v
5 changes: 3 additions & 2 deletions cmd/dero-wallet-cli/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,8 @@ func ReadStringXSWDPrompt(l *readline.Instance, onClose chan bool, prompt string
prompt_mutex.Unlock()
}()

l.Operation.KickReader()
// KickReader() removed: no published readline implements it (build fix)
_ = l.Operation

input := make(chan string)
validValue := false
Expand All @@ -857,7 +858,7 @@ func ReadStringXSWDPrompt(l *readline.Instance, onClose chan bool, prompt string

select {
case <-onClose:
l.Operation.KickReader()
_ = l.Operation // KickReader() removed (UI shim, not consensus)
return ""
case a = <-input:
}
Expand Down
60 changes: 59 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
module github.com/deroproject/derohe

go 1.17
go 1.25.0

require (
github.com/VictoriaMetrics/metrics v1.23.1
github.com/beevik/ntp v0.3.0
github.com/blang/semver/v4 v4.0.0
github.com/caarlos0/env/v6 v6.10.1
github.com/cenkalti/rpc2 v1.0.0
github.com/cespare/xxhash v1.1.0
github.com/chzyer/readline v1.5.1
github.com/coder/websocket v1.8.15
github.com/creachadair/jrpc2 v0.35.4
github.com/dchest/siphash v1.2.3
github.com/deroproject/graviton v0.0.0-20220130070622-2c248a53b2e1
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
github.com/dustin/go-humanize v1.0.1
github.com/fxamacker/cbor/v2 v2.4.0
github.com/go-logr/logr v1.4.4
github.com/go-logr/zapr v1.3.0
github.com/gorilla/websocket v1.4.1
github.com/hashicorp/golang-lru v0.5.4
github.com/klauspost/reedsolomon v1.12.0
github.com/lesismal/llib v1.1.10
github.com/lesismal/nbio v1.3.11
github.com/miekg/dns v1.1.55
github.com/robfig/cron/v3 v3.0.1
github.com/satori/go.uuid v1.2.0
github.com/segmentio/fasthash v1.0.3
github.com/stretchr/testify v1.11.1
github.com/xtaci/kcp-go/v5 v5.6.72
github.com/ybbus/jsonrpc v2.1.2+incompatible
go.etcd.io/bbolt v1.5.0
go.uber.org/zap v1.26.0
golang.org/x/crypto v0.53.0
golang.org/x/net v0.56.0
golang.org/x/sync v0.21.0
golang.org/x/sys v0.46.0
golang.org/x/time v0.14.0
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
gopkg.in/natefinch/lumberjack.v2 v2.2.1
)

require (
github.com/cenkalti/hub v1.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
github.com/onsi/gomega v1.42.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/tjfoc/gmsm v1.4.1 // indirect
github.com/valyala/fastrand v1.1.0 // indirect
github.com/valyala/histogram v1.2.0 // indirect
github.com/x448/float16 v0.8.4 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/mod v0.36.0 // indirect
golang.org/x/tools v0.45.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading