Skip to content

Commit 0adc511

Browse files
committed
Pulsechain Ethereum Patch #3
1 parent 2d7dba0 commit 0adc511

File tree

436 files changed

+18365
-16319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

436 files changed

+18365
-16319
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build Geth in a stock Go builder container
7-
FROM golang:1.21-alpine as builder
7+
FROM golang:1.20-alpine as builder
88

99
RUN apk add --no-cache gcc musl-dev linux-headers git
1010

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GOBIN = ./build/bin
88
GO ?= latest
9-
GORUN = go run
9+
GORUN = env GO111MODULE=on go run
1010

1111
geth:
1212
$(GORUN) build/ci.go install ./cmd/geth
@@ -23,7 +23,7 @@ lint: ## Run linters.
2323
$(GORUN) build/ci.go lint
2424

2525
clean:
26-
go clean -cache
26+
env GO111MODULE=on go clean -cache
2727
rm -fr build/_workspace/pkg/ $(GOBIN)/*
2828

2929
# The devtools target installs tools required for 'go generate'.

README.md

Lines changed: 21 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
## Go Ethereum
1+
# Go-Pulse: A PulseChain Execution Client Written in Go
22

3-
Official Golang execution layer implementation of the Ethereum protocol.
3+
This is the core repository for Go-Pulse, a [Golang](https://golang.org/) implementation of the [Ethereum Execution Layer](https://ethereum.org/en/developers/docs/networking-layer/#execution-layer) with added support for [PulseChain](https://pulsechain.com/).
44

5-
[![API Reference](
6-
https://assets-git-camo.f3mw1.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667
7-
)](https://pkg.go.dev/github.com/ethereum/go-ethereum?tab=doc)
8-
[![Go Report Card](https://goreportcard.com/badge/github.com/ethereum/go-ethereum)](https://goreportcard.com/report/github.com/ethereum/go-ethereum)
9-
[![Travis](https://travis-ci.com/ethereum/go-ethereum.svg?branch=master)](https://travis-ci.com/ethereum/go-ethereum)
10-
[![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/nthXNEv)
11-
12-
Automated builds are available for stable releases and the unstable master branch. Binary
13-
archives are published at https://geth.ethereum.org/downloads/.
5+
> This project is forked from [Go-Ethereum](https://github.com/ethereum/go-ethereum), the official Golang implementation of the Ethereum protocol. Credit goes to the Go-Ethereum developers for the original development.
146
157
## Building the source
168

@@ -31,16 +23,16 @@ make all
3123

3224
## Executables
3325

34-
The go-ethereum project comes with several wrappers/executables found in the `cmd`
26+
The go-pulse project comes with several wrappers/executables found in the `cmd`
3527
directory.
3628

3729
| Command | Description |
3830
| :--------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
39-
| **`geth`** | Our main Ethereum CLI client. It is the entry point into the Ethereum network (main-, test- or private net), capable of running as a full node (default), archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Ethereum network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. `geth --help` and the [CLI page](https://geth.ethereum.org/docs/fundamentals/command-line-options) for command line options. |
31+
| **`geth`** | Our main Ethereum/PulseChain CLI client. It is the entry point into the Ethereum or PulseChain networks (main-, test- or private net), capable of running as a full node (default), archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Ethereum/PulseChain networks via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. `geth --help` and the [CLI page](https://geth.ethereum.org/docs/fundamentals/command-line-options) for command line options. |
4032
| `clef` | Stand-alone signing tool, which can be used as a backend signer for `geth`. |
4133
| `devp2p` | Utilities to interact with nodes on the networking layer, without running a full blockchain. |
4234
| `abigen` | Source code generator to convert Ethereum contract definitions into easy-to-use, compile-time type-safe Go packages. It operates on plain [Ethereum contract ABIs](https://docs.soliditylang.org/en/develop/abi-spec.html) with expanded functionality if the contract bytecode is also available. However, it also accepts Solidity source files, making development much more streamlined. Please see our [Native DApps](https://geth.ethereum.org/docs/developers/dapp-developer/native-bindings) page for details. |
43-
| `bootnode` | Stripped down version of our Ethereum client implementation that only takes part in the network node discovery protocol, but does not run any of the higher level application protocols. It can be used as a lightweight bootstrap node to aid in finding peers in private networks. |
35+
| `bootnode` | Stripped down version of our Ethereum/PulseChain client implementation that only takes part in the network node discovery protocol, but does not run any of the higher level application protocols. It can be used as a lightweight bootstrap node to aid in finding peers in private networks. |
4436
| `evm` | Developer utility version of the EVM (Ethereum Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode. Its purpose is to allow isolated, fine-grained debugging of EVM opcodes (e.g. `evm --code 60ff60ff --debug run`). |
4537
| `rlpdump` | Developer utility tool to convert binary RLP ([Recursive Length Prefix](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp)) dumps (data encoding used by the Ethereum protocol both network as well as consensus wise) to user-friendlier hierarchical representation (e.g. `rlpdump --hex CE0183FFFFFFC4C304050583616263`). |
4638

@@ -123,6 +115,14 @@ use separate accounts for play and real money. Unless you manually move
123115
accounts, `geth` will by default correctly separate the two networks and will not make any
124116
accounts available between them.*
125117

118+
### **Full node on PulseChain Testnet V4**
119+
120+
To connect to the PulseChain Testnet V4:
121+
122+
```shell
123+
$ geth --pulsechain-testnet-v4 console
124+
```
125+
126126
### Configuration
127127

128128
As an alternative to passing the numerous flags to the `geth` binary, you can also pass a
@@ -143,13 +143,13 @@ $ geth --your-favourite-flags dumpconfig
143143

144144
#### Docker quick start
145145

146-
One of the quickest ways to get Ethereum up and running on your machine is by using
146+
One of the quickest ways to get Go-Pulse up and running on your machine is by using
147147
Docker:
148148

149149
```shell
150-
docker run -d --name ethereum-node -v /Users/alice/ethereum:/root \
150+
docker run -d --name pulsechain-execution-node -v /Users/alice/pulse:/root \
151151
-p 8545:8545 -p 30303:30303 \
152-
ethereum/client-go
152+
registry.gitlab.com/pulsechaincom/go-pulse --pulsechain-testnet-v4
153153
```
154154

155155
This will start `geth` in snap-sync mode with a DB memory allowance of 1GB, as the
@@ -164,7 +164,7 @@ accessible from the outside.
164164
### Programmatically interfacing `geth` nodes
165165

166166
As a developer, sooner rather than later you'll want to start interacting with `geth` and the
167-
Ethereum network via your own programs and not manually through the console. To aid
167+
PulseChain network via your own programs and not manually through the console. To aid
168168
this, `geth` has built-in support for a JSON-RPC based APIs ([standard APIs](https://ethereum.github.io/execution-apis/api-documentation/)
169169
and [`geth` specific APIs](https://geth.ethereum.org/docs/interacting-with-geth/rpc)).
170170
These can be exposed via HTTP, WebSockets and IPC (UNIX sockets on UNIX based
@@ -198,7 +198,7 @@ can reuse the same connection for multiple requests!
198198

199199
**Note: Please understand the security implications of opening up an HTTP/WS based
200200
transport before doing so! Hackers on the internet are actively trying to subvert
201-
Ethereum nodes with exposed APIs! Further, all browser tabs can access locally
201+
Ethereum/PulseChain nodes with exposed APIs! Further, all browser tabs can access locally
202202
running web servers, so malicious web pages could try to subvert locally available
203203
APIs!**
204204

@@ -299,7 +299,6 @@ also need to configure a miner to process transactions and create new blocks for
299299

300300
#### Running a private miner
301301

302-
303302
In a private network setting a single CPU miner instance is more than enough for
304303
practical purposes as it can produce a stable stream of blocks at the correct intervals
305304
without needing heavy resources (consider running on a single thread, no need for multiple
@@ -315,44 +314,12 @@ proceedings to the account specified by `--miner.etherbase`. You can further tun
315314
by changing the default gas limit blocks converge to (`--miner.targetgaslimit`) and the price
316315
transactions are accepted at (`--miner.gasprice`).
317316

318-
## Contribution
319-
320-
Thank you for considering helping out with the source code! We welcome contributions
321-
from anyone on the internet, and are grateful for even the smallest of fixes!
322-
323-
If you'd like to contribute to go-ethereum, please fork, fix, commit and send a pull request
324-
for the maintainers to review and merge into the main code base. If you wish to submit
325-
more complex changes though, please check up with the core devs first on [our Discord Server](https://discord.gg/invite/nthXNEv)
326-
to ensure those changes are in line with the general philosophy of the project and/or get
327-
some early feedback which can make both your efforts much lighter as well as our review
328-
and merge procedures quick and simple.
329-
330-
Please make sure your contributions adhere to our coding guidelines:
331-
332-
* Code must adhere to the official Go [formatting](https://golang.org/doc/effective_go.html#formatting)
333-
guidelines (i.e. uses [gofmt](https://golang.org/cmd/gofmt/)).
334-
* Code must be documented adhering to the official Go [commentary](https://golang.org/doc/effective_go.html#commentary)
335-
guidelines.
336-
* Pull requests need to be based on and opened against the `master` branch.
337-
* Commit messages should be prefixed with the package(s) they modify.
338-
* E.g. "eth, rpc: make trace configs optional"
339-
340-
Please see the [Developers' Guide](https://geth.ethereum.org/docs/developers/geth-developer/dev-guide)
341-
for more details on configuring your environment, managing project dependencies, and
342-
testing procedures.
343-
344-
### Contributing to geth.ethereum.org
345-
346-
For contributions to the [go-ethereum website](https://geth.ethereum.org), please checkout and raise pull requests against the `website` branch.
347-
For more detailed instructions please see the `website` branch [README](https://github.com/ethereum/go-ethereum/tree/website#readme) or the
348-
[contributing](https://geth.ethereum.org/docs/developers/geth-developer/contributing) page of the website.
349-
350317
## License
351318

352-
The go-ethereum library (i.e. all code outside of the `cmd` directory) is licensed under the
319+
The go-pulse library (i.e. all code outside of the `cmd` directory), like the upstream go-ethereum, is licensed under the
353320
[GNU Lesser General Public License v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html),
354321
also included in our repository in the `COPYING.LESSER` file.
355322

356-
The go-ethereum binaries (i.e. all code inside of the `cmd` directory) are licensed under the
323+
The go-pulse binaries (i.e. all code inside of the `cmd` directory), like the upstream go-ethereum, are licensed under the
357324
[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html), also
358325
included in our repository in the `COPYING` file.

0 commit comments

Comments
 (0)