good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
github
maticnetwork
bor
Commits
29d9690a
Unverified
Commit
29d9690a
authored
Feb 3, 2022
by
Victor Castell
Committed by
GitHub
Feb 3, 2022
Browse files
Options
Downloads
Patches
Plain Diff
Build and run the new CLI (#318)
* Build and run the new CLI
parent
c9cb5a76
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.goreleaser.yml
+4
-4
4 additions, 4 deletions
.goreleaser.yml
Makefile
+2
-10
2 additions, 10 deletions
Makefile
README.md
+0
-12
0 additions, 12 deletions
README.md
builder/files/bor.service
+11
-11
11 additions, 11 deletions
builder/files/bor.service
with
17 additions
and
37 deletions
.goreleaser.yml
+
4
−
4
View file @
29d9690a
...
@@ -7,7 +7,7 @@ release:
...
@@ -7,7 +7,7 @@ release:
builds
:
builds
:
-
id
:
darwin-amd64
-
id
:
darwin-amd64
main
:
./cmd/
geth
main
:
./cmd/
cli
binary
:
bor
binary
:
bor
goos
:
goos
:
-
darwin
-
darwin
...
@@ -22,7 +22,7 @@ builds:
...
@@ -22,7 +22,7 @@ builds:
-s -w
-s -w
-
id
:
darwin-arm64
-
id
:
darwin-arm64
main
:
./cmd/
geth
main
:
./cmd/
cli
binary
:
bor
binary
:
bor
goos
:
goos
:
-
darwin
-
darwin
...
@@ -37,7 +37,7 @@ builds:
...
@@ -37,7 +37,7 @@ builds:
-s -w
-s -w
-
id
:
linux-amd64
-
id
:
linux-amd64
main
:
./cmd/
geth
main
:
./cmd/
cli
binary
:
bor
binary
:
bor
goos
:
goos
:
-
linux
-
linux
...
@@ -53,7 +53,7 @@ builds:
...
@@ -53,7 +53,7 @@ builds:
-s -w -extldflags "-static"
-s -w -extldflags "-static"
-
id
:
linux-arm64
-
id
:
linux-arm64
main
:
./cmd/
geth
main
:
./cmd/
cli
binary
:
bor
binary
:
bor
goos
:
goos
:
-
linux
-
linux
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
2
−
10
View file @
29d9690a
...
@@ -14,16 +14,8 @@ GORUN = env GO111MODULE=on go run
...
@@ -14,16 +14,8 @@ GORUN = env GO111MODULE=on go run
GOPATH
=
$(
shell go
env
GOPATH
)
GOPATH
=
$(
shell go
env
GOPATH
)
bor
:
bor
:
$(
GORUN
)
build/ci.go
install
./cmd/geth
mkdir
-p
$(
GOPATH
)
/bin/
cp
$(
GOBIN
)
/geth
$(
GOBIN
)
/bor
cp
$(
GOBIN
)
/
*
$(
GOPATH
)
/bin/
bor-all
:
$(
GORUN
)
build/ci.go
install
mkdir
-p
$(
GOPATH
)
/bin/
mkdir
-p
$(
GOPATH
)
/bin/
cp
$(
GOBIN
)
/geth
$(
GOBIN
)
/bor
go build
-o
$(
GOBIN
)
/bor ./cmd/cli/main.go
cp
$(
GOBIN
)
/
*
$(
GOPATH
)
/bin/
protoc
:
protoc
:
protoc
--go_out
=
.
--go-grpc_out
=
.
./internal/cli/server/proto/
*
.proto
protoc
--go_out
=
.
--go-grpc_out
=
.
./internal/cli/server/proto/
*
.proto
...
@@ -164,7 +156,7 @@ geth-windows-amd64:
...
@@ -164,7 +156,7 @@ geth-windows-amd64:
@
ls
-ld
$(
GOBIN
)
/geth-windows-
*
|
grep
amd64
@
ls
-ld
$(
GOBIN
)
/geth-windows-
*
|
grep
amd64
PACKAGE_NAME
:=
github.com/maticnetwork/bor
PACKAGE_NAME
:=
github.com/maticnetwork/bor
GOLANG_CROSS_VERSION
?=
v1.17.
2
GOLANG_CROSS_VERSION
?=
v1.17.
6
.PHONY
:
release-dry-run
.PHONY
:
release-dry-run
release-dry-run
:
release-dry-run
:
...
...
This diff is collapsed.
Click to expand it.
README.md
+
0
−
12
View file @
29d9690a
...
@@ -63,12 +63,6 @@ them using your favourite package manager. Once the dependencies are installed,
...
@@ -63,12 +63,6 @@ them using your favourite package manager. Once the dependencies are installed,
$ make bor
$ make bor
```
```
-
or, to build the full suite of utilities:
```shell
$ make bor-all
```
### Make awesome changes!
### Make awesome changes!
1.
Create new branch for your changes
1.
Create new branch for your changes
...
@@ -113,12 +107,6 @@ them using your favourite package manager. Once the dependencies are installed,
...
@@ -113,12 +107,6 @@ them using your favourite package manager. Once the dependencies are installed,
<hr
style=
"margin-top: 3em; margin-bottom: 3em;"
>
<hr
style=
"margin-top: 3em; margin-bottom: 3em;"
>
Build the beta client:
```
shell
go build
-o
bor-beta
command
/
*
.go
```
## License
## License
The go-ethereum library (i.e. all code outside of the
`cmd`
directory) is licensed under the
The go-ethereum library (i.e. all code outside of the
`cmd`
directory) is licensed under the
...
...
This diff is collapsed.
Click to expand it.
builder/files/bor.service
+
11
−
11
View file @
29d9690a
...
@@ -6,19 +6,19 @@
...
@@ -6,19 +6,19 @@
[Service]
[Service]
Restart
=
on-failure
Restart
=
on-failure
RestartSec
=
5s
RestartSec
=
5s
ExecStart
=
/usr/local/bin/bor
\
ExecStart
=
/usr/local/bin/bor
server
\
-
-bor-
mumbai
\
-
chain=
mumbai
\
# -
-bor-
mainnet
\
# -
chain=
mainnet
\
-
-datadir /var/lib/bor/data
\
-datadir /var/lib/bor/data
\
-
-bootnodes "enode://0cb82b395094ee4a2915e9714894627de9ed8498fb881cec6db7c65e8b9a5bd7f2f25cc84e71e89d0947e51c76e85d0847de848c7782b13c0255247a6758178c@44.232.55.71:30303,enode://88116f4295f5a31538ae409e4d44ad40d22e44ee9342869e7d68bdec55b0f83c1530355ce8b41fbec0928a7d75a5745d528450d30aec92066ab6ba1ee351d710@159.203.9.164:30303"
-bootnodes "enode://0cb82b395094ee4a2915e9714894627de9ed8498fb881cec6db7c65e8b9a5bd7f2f25cc84e71e89d0947e51c76e85d0847de848c7782b13c0255247a6758178c@44.232.55.71:30303,enode://88116f4295f5a31538ae409e4d44ad40d22e44ee9342869e7d68bdec55b0f83c1530355ce8b41fbec0928a7d75a5745d528450d30aec92066ab6ba1ee351d710@159.203.9.164:30303"
# Validator params
# Validator params
# Uncomment and configure the following lines in case you run a validator
# Uncomment and configure the following lines in case you run a validator
#
-
-keystore /var/lib/bor/keystore \
# -keystore /var/lib/bor/keystore \
#
-
-unlock [VALIDATOR ADDRESS] \
# -unlock [VALIDATOR ADDRESS] \
#
-
-password /var/lib/bor/password.txt \
# -password /var/lib/bor/password.txt \
#
-
-allow-insecure-unlock \
# -allow-insecure-unlock \
#
-
-nodiscover
-
-maxpeers 1 \
# -nodiscover -maxpeers 1 \
#
-
-mine
# -mine
Type
=
simple
Type
=
simple
User
=
root
User
=
root
KillSignal
=
SIGINT
KillSignal
=
SIGINT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment