Skip to content

Commit

Permalink
Move over to GitHub actions, Travis pricing is nuts
Browse files Browse the repository at this point in the history
  • Loading branch information
zquestz committed Dec 20, 2024
1 parent 98b8c45 commit 95ffae1
Show file tree
Hide file tree
Showing 24 changed files with 70 additions and 75 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: stable
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2
env:
GO111MODULE: on
- name: Run goclean.sh
run: ./goclean.sh
env:
GO111MODULE: on
- name: Go Build/Install
run: go build && go install . ./cmd/...
env:
GO111MODULE: on
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bchd
====
[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/gcash/bchd)](https://goreportcard.com/report/github.com/gcash/bchd)
[![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/gcash/bchd)
Expand All @@ -11,8 +11,8 @@ This project is a port of the [btcd](https://github.com/btcsuite/btcd) codebase
and reliable blockchain server which makes it a suitable backend to serve blockchain data to lite clients and block explorers
or to power your local wallet.

bchd does not include any wallet functionality by design as it makes the codebase more modular and easy to maintain.
The [bchwallet](https://github.com/gcash/bchwallet) is a separate application that provides a secure Bitcoin Cash wallet
bchd does not include any wallet functionality by design as it makes the codebase more modular and easy to maintain.
The [bchwallet](https://github.com/gcash/bchwallet) is a separate application that provides a secure Bitcoin Cash wallet
that communicates with your running bchd instance via the API.

## Table of Contents
Expand All @@ -28,7 +28,7 @@ that communicates with your running bchd instance via the API.

## Requirements

[Go](http://golang.org) 1.16.4 or newer.
[Go](http://golang.org) 1.23.4 or newer.

## Install

Expand Down Expand Up @@ -139,7 +139,7 @@ Chris Pacia (ctpacia@gmail.com) - GPG Fingerprint: 0150 2502 DD3A 928D CE52 8CB9

or

Josh Ellithorpe (quest@mac.com) - GPG Fingerprint: B6DE 3514 E07E 30BB 5F40 8D74 E49B 7E00 0022 8DDD
Josh Ellithorpe (quest@mac.com) - GPG Fingerprint: B6DE 3514 E07E 30BB 5F40 8D74 E49B 7E00 0022 8DDD

## License

Expand Down
7 changes: 3 additions & 4 deletions bchec/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bchec
=====

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://godoc.org/github.com/gcash/bchd/bchec?status.png)](http://godoc.org/github.com/gcash/bchd/bchec)

Expand All @@ -25,11 +25,11 @@ $ go get -u github.com/gcash/bchd/bchec

## Examples

* [Sign Message](http://godoc.org/github.com/gcash/bchd/bchec#example-package--SignMessage)
* [Sign Message](http://godoc.org/github.com/gcash/bchd/bchec#example-package--SignMessage)
Demonstrates signing a message with a secp256k1 private key that is first
parsed form raw bytes and serializing the generated signature.

* [Verify Signature](http://godoc.org/github.com/gcash/bchd/bchec#example-package--VerifySignature)
* [Verify Signature](http://godoc.org/github.com/gcash/bchd/bchec#example-package--VerifySignature)
Demonstrates verifying a secp256k1 signature against a public key that is
first parsed from raw bytes. The signature is also parsed from raw bytes.

Expand Down Expand Up @@ -65,4 +65,3 @@ verify the signature perform the following:

Package bchec is licensed under the [copyfree](http://copyfree.org) ISC License
except for bchec.go and bchec_test.go which is under the same license as Go.

4 changes: 2 additions & 2 deletions bchrpc/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bchrpc
=======

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/bchrpc)

Expand All @@ -11,7 +11,7 @@ Package bchrpc implements a gRPC server.

This package provides a gRPC API which when combined with the `addrindex` and `txindex` provides
a powerful API for supporting Bitcoin Cash applications. At present the API only exposes public
methods for interacting with transactions and blocks. It does not expose any methods which can
methods for interacting with transactions and blocks. It does not expose any methods which can
control the node so it is safe to expose the API publicly. To control the node continue using
the JSON-RPC API.

Expand Down
8 changes: 4 additions & 4 deletions blockchain/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
blockchain
==========

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/blockchain)

Expand Down Expand Up @@ -61,18 +61,18 @@ is by no means exhaustive:

## Examples

* [ProcessBlock Example](http://godoc.org/github.com/gcash/bchd/blockchain#example-BlockChain-ProcessBlock)
* [ProcessBlock Example](http://godoc.org/github.com/gcash/bchd/blockchain#example-BlockChain-ProcessBlock)
Demonstrates how to create a new chain instance and use ProcessBlock to
attempt to add a block to the chain. This example intentionally
attempts to insert a duplicate genesis block to illustrate how an invalid
block is handled.

* [CompactToBig Example](http://godoc.org/github.com/gcash/bchd/blockchain#example-CompactToBig)
* [CompactToBig Example](http://godoc.org/github.com/gcash/bchd/blockchain#example-CompactToBig)
Demonstrates how to convert the compact "bits" in a block header which
represent the target difficulty to a big integer and display it using the
typical hex notation.

* [BigToCompact Example](http://godoc.org/github.com/gcash/bchd/blockchain#example-BigToCompact)
* [BigToCompact Example](http://godoc.org/github.com/gcash/bchd/blockchain#example-BigToCompact)
Demonstrates how to convert a target difficulty into the
compact "bits" in a block header which represent that target difficulty.

Expand Down
2 changes: 1 addition & 1 deletion blockchain/fullblocktests/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fullblocktests
==============

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/blockchain/fullblocktests)

Expand Down
2 changes: 1 addition & 1 deletion blockchain/indexers/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
indexers
========

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://godoc.org/github.com/gcash/bchd/blockchain/indexers?status.png)](http://godoc.org/github.com/gcash/bchd/blockchain/indexers)

Expand Down
2 changes: 1 addition & 1 deletion chaincfg/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
chaincfg
========

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/chaincfg)

Expand Down
2 changes: 1 addition & 1 deletion chaincfg/chainhash/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
chainhash
=========

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/chaincfg/chainhash)
=======
Expand Down
2 changes: 1 addition & 1 deletion connmgr/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
connmgr
=======

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/connmgr)

Expand Down
6 changes: 3 additions & 3 deletions database/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
database
========

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/database)

Expand Down Expand Up @@ -42,11 +42,11 @@ $ go get -u github.com/gcash/bchd/database

## Examples

* [Basic Usage Example](http://godoc.org/github.com/gcash/bchd/database#example-package--BasicUsage)
* [Basic Usage Example](http://godoc.org/github.com/gcash/bchd/database#example-package--BasicUsage)
Demonstrates creating a new database and using a managed read-write
transaction to store and retrieve metadata.

* [Block Storage and Retrieval Example](http://godoc.org/github.com/gcash/bchd/database#example-package--BlockStorageAndRetrieval)
* [Block Storage and Retrieval Example](http://godoc.org/github.com/gcash/bchd/database#example-package--BlockStorageAndRetrieval)
Demonstrates creating a new database, using a managed read-write transaction
to store a block, and then using a managed read-only transaction to fetch the
block.
Expand Down
2 changes: 1 addition & 1 deletion database/ffldb/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ffldb
=====

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://godoc.org/github.com/gcash/bchd/database/ffldb?status.png)](http://godoc.org/github.com/gcash/bchd/database/ffldb)
=======
Expand Down
2 changes: 1 addition & 1 deletion database/internal/treap/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
treap
=====

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://godoc.org/github.com/gcash/bchd/database/internal/treap?status.png)](http://godoc.org/github.com/gcash/bchd/database/internal/treap)

Expand Down
2 changes: 1 addition & 1 deletion integration/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
integration
===========

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)

This contains integration tests which make use of the
Expand Down
3 changes: 1 addition & 2 deletions integration/rpctest/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rpctest
=======

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/integration/rpctest)

Expand All @@ -27,4 +27,3 @@ $ go get -u github.com/gcash/bchd/integration/rpctest

Package rpctest is licensed under the [copyfree](http://copyfree.org) ISC
License.

2 changes: 1 addition & 1 deletion mempool/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mempool
=======

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/mempool)

Expand Down
2 changes: 1 addition & 1 deletion mining/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mining
======

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/mining)

Expand Down
2 changes: 1 addition & 1 deletion mining/cpuminer/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cpuminer
========

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/mining/cpuminer)
=======
Expand Down
2 changes: 1 addition & 1 deletion netsync/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
netsync
=======

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/netsync)

Expand Down
6 changes: 3 additions & 3 deletions peer/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
peer
====

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/peer)

Package peer provides a common base for creating and managing bitcoin cash
Package peer provides a common base for creating and managing bitcoin cash
network peers.

This package has intentionally been designed so it can be used as a standalone
Expand Down Expand Up @@ -63,7 +63,7 @@ $ go get -u github.com/gcash/bchd/peer

## Examples

* [New Outbound Peer Example](https://godoc.org/github.com/gcash/bchd/peer#example-package--NewOutboundPeer)
* [New Outbound Peer Example](https://godoc.org/github.com/gcash/bchd/peer#example-package--NewOutboundPeer)
Demonstrates the basic process for initializing and creating an outbound peer.
Peers negotiate by exchanging version and verack messages. For demonstration,
a simple handler for the version message is attached to the peer.
Expand Down
2 changes: 1 addition & 1 deletion rpcclient/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rpcclient
=========

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/rpcclient)

Expand Down
8 changes: 4 additions & 4 deletions txscript/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
txscript
========

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
[![GoDoc](https://godoc.org/github.com/gcash/bchd/txscript?status.png)](http://godoc.org/github.com/gcash/bchd/txscript)

Expand All @@ -26,15 +26,15 @@ $ go get -u github.com/gcash/bchd/txscript

## Examples

* [Standard Pay-to-pubkey-hash Script](http://godoc.org/github.com/gcash/bchd/txscript#example-PayToAddrScript)
* [Standard Pay-to-pubkey-hash Script](http://godoc.org/github.com/gcash/bchd/txscript#example-PayToAddrScript)
Demonstrates creating a script which pays to a bitcoin cash address. It also
prints the created script hex and uses the DisasmString function to display
the disassembled script.

* [Extracting Details from Standard Scripts](http://godoc.org/github.com/gcash/bchd/txscript#example-ExtractPkScriptAddrs)
* [Extracting Details from Standard Scripts](http://godoc.org/github.com/gcash/bchd/txscript#example-ExtractPkScriptAddrs)
Demonstrates extracting information from a standard public key script.

* [Manually Signing a Transaction Output](http://godoc.org/github.com/gcash/bchd/txscript#example-SignTxOutput)
* [Manually Signing a Transaction Output](http://godoc.org/github.com/gcash/bchd/txscript#example-SignTxOutput)
Demonstrates manually creating and signing a redeem transaction.

## License
Expand Down
2 changes: 1 addition & 1 deletion wire/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
wire
====

[![Build Status](https://travis-ci.org/gcash/bchd.png?branch=master)](https://travis-ci.org/gcash/bchd)
![Build Status](https://github.com/gcash/bchd/actions/workflows/main.yml/badge.svg?branch=master)
[![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/gcash/bchd/wire)
=======
Expand Down

0 comments on commit 95ffae1

Please sign in to comment.