Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bfanodo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nelson Lombardo
bfanodo
Commits
9f31ed13
Commit
9f31ed13
authored
5 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
d0af41e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+65
-0
65 additions, 0 deletions
README.md
with
65 additions
and
0 deletions
README.md
+
65
−
0
View file @
9f31ed13
...
...
@@ -2,6 +2,71 @@
## Un nodo transaccional para BFA.
### Caracteristicas
El
`bfanodo`
es un docker que podes bajar y correr en tu propia
maquina o datacenter. Se va a levantar como un nodo transaccional,
**sin cuentas**
, abierto a todo el mundo.
Si no queres brindar este servicio a la red, podes usar ipfilter o
(mas facil) no publicar el puerto 8545 (atalo (bind) a 127.0.0.1
solamente, igual que puerto 8546). Para hacer eso, tenes que cambiar
los parametros
`-p`
en
`start.sh`
.
Como ves en el ejemplo abajo, puerto 30303/tcp y 8545/tcp estan abiertos al
mundo (0.0.0.0 = INADDR_ANY) y 8546/tcp esta abierto solamente para
conecciones de tu maquina.
```
$ docker container port bfanodo
30303/tcp -> 0.0.0.0:30303
8545/tcp -> 0.0.0.0:8545
8546/tcp -> 127.0.0.1:8546
```
Es importante entender que "tu maquina" incluye otros dockers en
la misma maquina, si las has conectado con el parametro
`--link`
,
como se puede ver aqui:
```
docker run --rm -it --link bfanodo alpine env | grep BFANODO_PORT | sort
BFANODO_PORT_30303_TCP_ADDR=172.17.0.2
BFANODO_PORT_30303_TCP_PORT=30303
BFANODO_PORT_30303_TCP_PROTO=tcp
BFANODO_PORT_30303_TCP=tcp://172.17.0.2:30303
BFANODO_PORT_30303_UDP_ADDR=172.17.0.2
BFANODO_PORT_30303_UDP_PORT=30303
BFANODO_PORT_30303_UDP_PROTO=udp
BFANODO_PORT_30303_UDP=udp://172.17.0.2:30303
BFANODO_PORT_8545_TCP_ADDR=172.17.0.2
BFANODO_PORT_8545_TCP_PORT=8545
BFANODO_PORT_8545_TCP_PROTO=tcp
BFANODO_PORT_8545_TCP=tcp://172.17.0.2:8545
BFANODO_PORT_8546_TCP_ADDR=172.17.0.2
BFANODO_PORT_8546_TCP_PORT=8546
BFANODO_PORT_8546_TCP_PROTO=tcp
BFANODO_PORT_8546_TCP=tcp://172.17.0.2:8546
BFANODO_PORT=tcp://172.17.0.2:8545
```
Los puertos estan disponibles de los otros dockers tambien sin usar
`--link`
pero no van a estar publicados en variables del entorno.
```
docker run --rm alpine sh -c "date | nc 172.17.0.2 8545" ; echo
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
Connection: close
400 Bad Request
```
(puerto abierto)
### Cuentas
Una leccion aprendido durante el primer año de BFA es, que el
`geth`
normalmente no necesita una cuenta asociado (eso obviamente es distinto si
lo usas como nodo sellador).
Las cuentas deben estar asociados a los applicaciones que se conecta al
nodo. Ese hace es sistema mas seguro, y
**
cada applicacion necesita su
propia cuenta
**
.
### Para usar
```
...
...
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