Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove $GOPATH Caching #9

Merged
merged 62 commits into from
Aug 29, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
6799104
Remove $GOPATH Caching
jakesylvestre Feb 10, 2020
c01c981
Merge pull request #1537 from jakesyl/patch-1
jcvernaleo Mar 3, 2020
eed57cd
go fmt
jakesylvestre Jan 22, 2020
3eb4739
Fix minRelayTxFee name in comment
federicobond Jul 9, 2018
1639d6c
release: add missing back tick in build docs
Dec 26, 2019
8bbbe98
peer: fix small typo
gtank Oct 9, 2019
0c76fbd
Fix comment error
imnisen Mar 3, 2019
318c89d
fix comment of database.Tx to match code
yashbhutwala Jun 25, 2019
46461dc
btcjson, rpclient: Fix typo
Jul 5, 2019
ef4cecf
blockchain/indexers: Start a new line for long code
qshuai Jan 29, 2019
e2c08cc
docs/json_rpc_api: update go examples
mohanson Aug 27, 2018
06e5c43
Add note about using gencerts when listening on specific interfaces
kulpreet Jul 18, 2018
160c388
Refactor GetBlockCmd type and NewGetBlockCmd() function to follow the…
jalavosus Jan 31, 2020
468154a
Refactor GetBlockVerboseResult into two separate types: one type for …
jalavosus Jan 31, 2020
57cb8e4
Refactor FutureGetBlockVerboseResult into two types: FutureGetBlockVe…
jalavosus Jan 31, 2020
a310aa6
All tests pass
jalavosus Mar 5, 2020
e9f15ed
rpcclient: Add net params to Client (#1467)
jcvernaleo Mar 5, 2020
1d0bfca
fix error message
Jan 12, 2020
9e94ccb
server: Fix incorrect log message format
stevenroose Mar 16, 2018
96f3808
BUG:dynamicbanscore deadlock
lochjin Mar 6, 2020
fd0921b
btcjson: add RPC_IN_WARMUP error code
sangaman Feb 18, 2020
c4f3999
Refactor GetBlockVerboseTx to reflect correct getblock RPC call… (#1529)
jakesylvestre Mar 9, 2020
d9ce6b0
btcjson,rpcclient: use proper Deprecated comment format
quasilyte Sep 13, 2018
a8eadd2
update GetMempoolEntryResult to v0.19.0
jakesylvestre Jan 22, 2020
8b1be46
Add generatetoaddress and estimatesmartfee RPCs
torkelrogstad Nov 26, 2019
cfcf4fb
Implement 'getblockstats' JSON-RPC command
Jeiwan Nov 27, 2019
08b8751
cmd/btcctl: use regexp.MustCompile for constant patterns
quasilyte Sep 13, 2018
57d44d0
Try both TX serialization formats
torkelrogstad Dec 2, 2019
9f15a7e
Alphabetize --help output; add missing options to doc.go
murrayn Apr 14, 2020
8b54b0b
config.go: remove extra quotes
Rjected Apr 14, 2020
8512aff
readme: remove duplicate word
tpkeeper May 6, 2020
b298415
Improve error message about non-active segwit on simnet
darwin Mar 25, 2019
b470eee
btcctl: add regtest mode to btcctl
Rjected Apr 14, 2020
a505b99
build: replace travis-ci with github actions.
dajohi May 13, 2020
bc8d63b
build: update deps
dajohi May 13, 2020
f7399e6
build: clean linter warnings
dajohi May 13, 2020
d38279e
btcjson: change getblock default verbosity to 1
henryperson May 15, 2020
742935e
rpcclient: send legacy GetBlock request for backwards compatibility
wpaulino May 14, 2020
9a88e1d
Merge pull request #1575 from dajohi/clean
Roasbeef May 15, 2020
9f0179f
Merge pull request #1577 from wpaulino/getblock-compat
Roasbeef May 15, 2020
280845a
rpcclient: Add cookie auth
JeremyRand May 25, 2020
915788b
rpcclient: Refactor cookie caching
JeremyRand Oct 9, 2019
e6f163e
rpcclient: Try user+pass auth before cookie auth
JeremyRand Oct 9, 2019
6d521ff
rpcclient: Read first line of cookie instead of trimming space
JeremyRand Oct 10, 2019
714de3f
rpcclient: serialize nil inputs to empty list
torkelrogstad Apr 2, 2020
b11bf58
Improve chain state init efficiency
lindlof May 17, 2020
a383a71
Add blockchain.NewUtxoEntry() to directly create entries for UtxoView…
adiabat May 29, 2020
73d69f0
Add getchaintxstats JSON-RPC client command
lindlof May 11, 2020
e4f5902
Add fundrawtransaction RPC call
torkelrogstad Dec 2, 2019
7b2ff5d
Add getbalances RPC client command
federicobond Jun 18, 2020
e2d9cf4
rpcclient: Add GetTransactionWatchOnly method
onyb Jun 10, 2020
875b51c
peer: knownInventory, sentNonces - use generic lru
tuxcanfly Jul 3, 2020
d28c716
btcec: Avoid panic in fieldVal.SetByteSlice for large inputs
onyb Jul 9, 2020
c739023
config+service_windows: add flag to disable win service
guggero Jul 22, 2020
3c56a6b
updated docs for getblock-verbosity fixes
JettScythe Jul 21, 2020
69773a7
Update json_rpc_api.md
JettScythe Jul 21, 2020
24db7d7
netsync: handle notfound messages from peers
tuxcanfly Jul 10, 2020
1db1b6f
Merge pull request #1609 from guggero/disable-windows-service
Roasbeef Jul 30, 2020
4255e1e
release: update release script path
Rjected Jul 23, 2020
2a0d6fd
release: remove old scripts and update process doc
Rjected Jul 27, 2020
4527c56
Update CHANGES file for 0.21.0 release
onyb Aug 24, 2020
56cc42f
btcd: bump version to v0.21.0-beta
jcvernaleo Aug 27, 2020
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
Prev Previous commit
Next Next commit
build: replace travis-ci with github actions.
test go 1.14
use golangci-lint
  • Loading branch information
dajohi committed May 13, 2020
commit a505b99ba37802797ad486cc3d0d811d5409de6d
27 changes: 27 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and Test
on: [push, pull_request]
jobs:
build:
name: Go CI
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.13, 1.14]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
- name: Install Linters
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0"
- name: Build
env:
GO111MODULE: "on"
run: go build ./...
- name: Test
env:
GO111MODULE: "on"
run: |
sh ./goclean.sh
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
btcd
====

[![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcd)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd)
[![Build Status](https://github.com/btcsuite/btcd/workflows/Build%20and%20Test/badge.svg)](https://github.com/btcsuite/btcd/actions)
[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/btcsuite/btcd)

btcd is an alternative full node bitcoin implementation written in Go (golang).

Expand Down
2 changes: 1 addition & 1 deletion btcjson/chainsvrresults.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ type GetBlockTemplateResult struct {

type MempoolFees struct {
Base float64 `json:"base"`
Modified float64 `json:"base"`
Modified float64 `json:"modified"`
Ancestor float64 `json:"ancestor"`
Descendant float64 `json:"descendant"`
}
Expand Down
18 changes: 4 additions & 14 deletions goclean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,16 @@
# 4. gosimple (https://github.com/dominikh/go-simple)
# 5. unconvert (https://github.com/mdempsky/unconvert)
#
# gometalinter (github.com/alecthomas/gometalinter) is used to run each static
# checker.

set -ex

# Make sure gometalinter is installed and $GOPATH/bin is in your path.
# $ go get -v github.com/alecthomas/gometalinter"
# $ gometalinter --install"
if [ ! -x "$(type -p gometalinter.v2)" ]; then
exit 1
fi

linter_targets=$(go list ./...)
go test -tags="rpctest" ./...

# Automatic checks
test -z "$(gometalinter.v2 -j 4 --disable-all \
golangci-lint run --deadline=10m --disable-all \
--enable=gofmt \
--enable=golint \
--enable=vet \
--enable=gosimple \
--enable=unconvert \
--deadline=10m $linter_targets 2>&1 | grep -v 'ALL_CAPS\|OP_' 2>&1 | tee /dev/stderr)"
GO111MODULE=on go test -tags="rpctest" $linter_targets
--enable=unconvert

8 changes: 4 additions & 4 deletions mempool/mempool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1418,8 +1418,8 @@ func TestAncestorsDescendants(t *testing.T) {
// We'll be querying for the ancestors of E. We should expect to see all
// of the transactions that it depends on.
expectedAncestors := map[chainhash.Hash]struct{}{
*a.Hash(): struct{}{}, *b.Hash(): struct{}{},
*c.Hash(): struct{}{}, *d.Hash(): struct{}{},
*a.Hash(): {}, *b.Hash(): {},
*c.Hash(): {}, *d.Hash(): {},
}
ancestors := ctx.harness.txPool.txAncestors(e, nil)
if len(ancestors) != len(expectedAncestors) {
Expand All @@ -1436,8 +1436,8 @@ func TestAncestorsDescendants(t *testing.T) {
// Then, we'll query for the descendants of A. We should expect to see
// all of the transactions that depend on it.
expectedDescendants := map[chainhash.Hash]struct{}{
*b.Hash(): struct{}{}, *c.Hash(): struct{}{},
*d.Hash(): struct{}{}, *e.Hash(): struct{}{},
*b.Hash(): {}, *c.Hash(): {},
*d.Hash(): {}, *e.Hash(): {},
}
descendants := ctx.harness.txPool.txDescendants(a, nil)
if len(descendants) != len(expectedDescendants) {
Expand Down
12 changes: 6 additions & 6 deletions txscript/pkscript_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ func TestComputePkScript(t *testing.T) {
name: "P2WSH witness",
sigScript: nil,
witness: [][]byte{
[]byte{},
{},
// Witness script.
[]byte{
{
0x21, 0x03, 0x82, 0x62, 0xa6, 0xc6,
0xce, 0xc9, 0x3c, 0x2d, 0x3e, 0xcd,
0x6c, 0x60, 0x72, 0xef, 0xea, 0x86,
Expand Down Expand Up @@ -367,9 +367,9 @@ func TestComputePkScript(t *testing.T) {
witness: [][]byte{
// Signature is not needed to re-derive the
// pkScript.
[]byte{},
{},
// Compressed pubkey.
[]byte{
{
0x03, 0x82, 0x62, 0xa6, 0xc6, 0xce,
0xc9, 0x3c, 0x2d, 0x3e, 0xcd, 0x6c,
0x60, 0x72, 0xef, 0xea, 0x86, 0xd0,
Expand Down Expand Up @@ -398,9 +398,9 @@ func TestComputePkScript(t *testing.T) {
witness: [][]byte{
// Signature is not needed to re-derive the
// pkScript.
[]byte{},
{},
// Malformed compressed pubkey.
[]byte{
{
0x03, 0x82, 0x62, 0xa6, 0xc6, 0xce,
0xc9, 0x3c, 0x2d, 0x3e, 0xcd, 0x6c,
0x60, 0x72, 0xef, 0xea, 0x86, 0xd0,
Expand Down