Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
83a3bc4
add comment to clarify use of ENV variable
Aug 3, 2021
7f35bbe
Merge pull request #76 from coinbase/madhur/add-comment-to-explain-env
shrimalmadhur Aug 4, 2021
48a71f2
upgrade
maili-cb Sep 14, 2021
c02d9cb
lint
maili-cb Sep 15, 2021
b90de36
config
maili-cb Sep 15, 2021
4791e8d
rn .idea
maili-cb Sep 15, 2021
c75a095
add golint
maili-cb Sep 15, 2021
b01d433
go mod tidy
maili-cb Sep 15, 2021
96960d3
go install -> go get
maili-cb Sep 15, 2021
9bd5e34
tidy
maili-cb Sep 15, 2021
28190da
remove golang.org/x/lint
maili-cb Sep 15, 2021
182d01d
Merge pull request #80 from maili-cb/mai-li/upgrade-go
shrimalmadhur Sep 20, 2021
a2ef560
Bump SDK to 0.7.0 (#82)
maili-cb Sep 20, 2021
d1f01a4
Bump github.com/coinbase/rosetta-sdk-go from 0.7.0 to 0.7.1 (#84)
dependabot[bot] Nov 16, 2021
29588ec
Bump go.uber.org/zap from 1.16.0 to 1.19.1 (#79)
dependabot[bot] Nov 17, 2021
b3e4ef5
Readme update (fixes Issue #89) (#90)
racbc Dec 8, 2021
13af8cd
Bump github.com/coinbase/rosetta-sdk-go from 0.7.1 to 0.7.2 (#91)
dependabot[bot] Dec 9, 2021
6aa181a
Bump github.com/grpc-ecosystem/go-grpc-middleware from 1.2.2 to 1.3.0…
dependabot[bot] Dec 10, 2021
c8e0bbd
update ubuntu (#92)
shrimalmadhur Dec 13, 2021
6ceb29a
Readme update images (#95)
racbc Dec 23, 2021
2ea3df6
update circleci (#100)
shrimalmadhur Feb 16, 2022
a65c64e
Address memory leak issue in indexer (#97)
xiaying-peng Feb 25, 2022
958a051
Replace CircleCI with gh actions (#110)
irisZhangCB Apr 27, 2022
26fd89d
Update README and CONTRIBUTING files (#108)
racbc Apr 29, 2022
06599bd
Fix formatting issues in README file (#112)
racbc May 4, 2022
ad3aa8a
Fix formatting in Required Arguments section in README (#114)
racbc Jul 13, 2022
59afe97
Bump github.com/coinbase/rosetta-sdk-go from 0.7.2 to 0.7.10 (#117)
dependabot[bot] Jul 13, 2022
23e92f3
Bump go.uber.org/zap from 1.19.1 to 1.23.0 (#124)
dependabot[bot] Aug 26, 2022
6f7a209
Add regtest support. (#130)
dvc94ch Nov 1, 2022
f786828
update name (#145)
xiaying-peng Jun 12, 2024
2d94e8a
Update README.md (#146)
xiaying-peng Jun 17, 2024
86a3db6
fix ref (#147)
xiaying-peng Jul 9, 2024
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
103 changes: 0 additions & 103 deletions .circleci/config.yml

This file was deleted.

80 changes: 80 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: CI

on:
push:
branches:
- master
pull_request:

env:
go_version: 1.16
GO111MODULE: on
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
- run: make build
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
- run: make test
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
- uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 3m
- run: make check-comments

Check-License:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
version: latest
- uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
- run: make check-license

Check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
version: latest
- run: make check-format

Coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
version: latest
- uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
- run: make coverage COVERALLS_TOKEN="$COVERALLS_TOKEN"

Salus:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
version: latest
- run: make salus
90 changes: 58 additions & 32 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,79 @@
# Contributing to rosetta-bitcoin
# Contributing to mesh-bitcoin

## Code of Conduct

All interactions with this project follow our [Code of Conduct][code-of-conduct].
By participating, you are expected to honor this code. Violators can be banned
from further participation in this project, or potentially all Coinbase projects.
All interactions with this project follow our [Code of Conduct](https://github.com/coinbase/code-of-conduct). By participating, you are expected to honor this code. Violators can be banned from further participation in this project, or potentially all Coinbase projects.

[code-of-conduct]: https://github.com/coinbase/code-of-conduct
## How to Contribute

## Bug Reports
You can contribute to this repository by asking questions, providing feedback, and reporting issues.

* Ensure your issue [has not already been reported][1]. It may already be fixed!
* Include the steps you carried out to produce the problem.
* Include the behavior you observed along with the behavior you expected, and
why you expected it.
* Include any relevant stack traces or debugging output.
### Asking Questions

## Feature Requests
Submit your questions via the [Mesh Community boards][13].

We welcome feedback with or without pull requests. If you have an idea for how
to improve the project, great! All we ask is that you take the time to write a
clear and concise explanation of what need you are trying to solve. If you have
thoughts on _how_ it can be solved, include those too!
### Providing Feedback

You can also use the [Mesh Community boards][13] to provide feedback.

### Reporting Issues

You can report issues by submitting bug reports, feature requests, or pull requests via GitHub. You **must** submit [security issues](#security-issues) and [support requests](#support-requests) through the links provided.

#### Bug Reports

Before filing a bug report, ensure that your issue [has not already been reported][1]. It may already be fixed!

If your bug hasn’t been fixed, follow these steps to file a bug report:

1. [Open an issue in GitHub][10].
2. Add a title for your bug report. It should briefly describe the problem.
3. Follow the template that appears in the Write text box. This is the best way to describe the bug.
4. Click _Submit new issue_ to finish filing the bug report.

#### Feature Requests

We welcome feedback with or without pull requests. If you have an idea for how to improve the project, great! All we ask is that you take the time to write a clear and concise explanation of the need you are trying to solve. If you have thoughts on _how_ it can be solved, include those too!

To submit a feature request, follow these steps:

1. [Open an issue in GitHub][10].
2. Add a title for your feature request. It should briefly describe your requested feature.
3. Follow the template that appears in the Write text box. This is the best way to explain your request. Be clear and concise in your responses.
4. Click _Submit new issue_ to submit the feature request.

The best way to see a feature added, however, is to submit a pull request.

## Pull Requests
#### Pull Requests

Before creating your pull request, it's usually worth asking whether the code you're planning on writing will be considered for merging. You can do this by [opening an issue][1] and asking. It may also help give the maintainers context for when the time comes to review your code.

* Before creating your pull request, it's usually worth asking if the code
you're planning on writing will actually be considered for merging. You can
do this by [opening an issue][1] and asking. It may also help give the
maintainers context for when the time comes to review your code.
Ensure that your [commit messages are well-written][2]. This can double as your pull request message, so it pays to take the time to write a clear message.

* Ensure your [commit messages are well-written][2]. This can double as your
pull request message, so it pays to take the time to write a clear message.
Additionally, make sure that you have written unit tests for your changes. If you're unsure as to what to test, don't hesitate to [open an issue][1] and ask!

* Add tests for your feature. You should be able to look at other tests for
examples. If you're unsure, don't hesitate to [open an issue][1] and ask!
To submit your pull request, follow these steps:

* Submit your pull request!
1. Follow these instructions on how to [open a pull request in GitHub][11].
2. Click _Create pull request_ to submit your pull request.

## Support Requests
Once you submit your pull request, a reviewer will revise it, and either approve it or offer suggestions.

For security reasons, any communication referencing support tickets for Coinbase
products will be ignored. The request will have its content redacted and will
be locked to prevent further discussion.
#### Security Issues

You can send a report through Coinbase's [H1 program][12]. Check out the [Security][14] tab for more information.

#### Support Requests

All support requests must be made via [our support team][3].

[1]: https://github.com/coinbase/rosetta-bitcoin/issues
**For security reasons, any communication referencing support tickets for Coinbase products will be ignored.** The request will have its content redacted and will be locked to prevent further discussion.

<!-- Please fill out the numbers 4-9 before adding more links after 14. -->
[1]: https://github.com/coinbase/mesh-bitcoin/issues
[2]: https://chris.beams.io/posts/git-commit/#seven-rules
[3]: https://support.coinbase.com/customer/en/portal/articles/2288496-how-can-i-contact-coinbase-support-
[3]: https://support.coinbase.com/customer/en/portal/articles/2288496-how-can-i-contact-coinbase-support
[10]: https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/creating-an-issue-or-pull-request#creating-an-issue
[11]: https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/creating-an-issue-or-pull-request#creating-a-pull-request
[12]: https://hackerone.com/coinbase
[13]: https://github.com/coinbase/mesh-bitcoin/security
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
# limitations under the License.

# Build bitcoind
FROM ubuntu:18.04 as bitcoind-builder
FROM ubuntu:20.04 as bitcoind-builder

RUN mkdir -p /app \
&& chown -R nobody:nogroup /app
WORKDIR /app

# Source: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#ubuntu--debian
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ Etc/UTC
RUN apt-get update && apt-get install -y make gcc g++ autoconf autotools-dev bsdmainutils build-essential git libboost-all-dev \
libcurl4-openssl-dev libdb++-dev libevent-dev libssl-dev libtool pkg-config python python-pip libzmq3-dev wget
libcurl4-openssl-dev libdb++-dev libevent-dev libssl-dev libtool pkg-config python python3-pip libzmq3-dev wget

# VERSION: Bitcoin Core 0.20.1
RUN git clone https://github.com/bitcoin/bitcoin \
Expand All @@ -37,16 +39,17 @@ RUN mv bitcoin/src/bitcoind /app/bitcoind \
&& rm -rf bitcoin

# Build Rosetta Server Components
FROM ubuntu:18.04 as rosetta-builder
FROM ubuntu:20.04 as rosetta-builder

RUN mkdir -p /app \
&& chown -R nobody:nogroup /app
WORKDIR /app

RUN apt-get update && apt-get install -y curl make gcc g++
ENV GOLANG_VERSION 1.15.5
ENV GOLANG_DOWNLOAD_SHA256 9a58494e8da722c3aef248c9227b0e9c528c7318309827780f16220998180a0d
# Install Golang 1.17.5.
ENV GOLANG_VERSION 1.17.5
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
ENV GOLANG_DOWNLOAD_SHA256 bd78114b0d441b029c8fe0341f4910370925a4d270a6a590668840675b0c653e

RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
&& echo "$GOLANG_DOWNLOAD_SHA256 golang.tar.gz" | sha256sum -c - \
Expand All @@ -67,7 +70,7 @@ RUN cd src \
&& rm -rf src

## Build Final Image
FROM ubuntu:18.04
FROM ubuntu:20.04

RUN apt-get update && \
apt-get install --no-install-recommends -y libevent-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev && \
Expand Down
Loading