Closed zmrocze closed 4 months ago
I've made the block-producer
module.
At this point it hardly differs from what a relay node would be.
I'd do 2 modules. Once we define different firewall settings for block-producer and relay, the modules actually become quite different. To me it's better to define them as 2 modules not to create a false expectation of similarity.
Counter argument is that the 2 modules cannot be run on same machine (clash on services.cardano-node
), so that's a false expectation as well (though it's explained by the error log one would get).
I'm getting format check here at e4e1796
, eventhough nix fmt
brings no format changes locally? strange
Myself I would prefer to code the relay-node
module later, after adding firewall, to see what are the changes first.
included issue #13.
Tried:
>>> relay_node.execute("python -m http.server")
<< doesn't return, seems to be run >>
Dont know how to interpret
Running nmap, ports are closed, :
> relay_node.execute("nmap -sS -p3001 192.168.1.0/30")
Starting Nmap 7.94 ( https://nmap.org ) at 2024-02-13 11:20 UTC
Nmap scan report for block_producer (192.168.1.1)
Host is up (0.00079s latency).
PORT STATE SERVICE
3001/tcp closed nessus
MAC Address: 52:54:00:12:01:01 (QEMU virtual NIC)
Nmap scan report for relay_node (192.168.1.2)
Host is up (0.000054s latency).
PORT STATE SERVICE
3001/tcp closed nessus
Nmap done: 4 IP addresses (2 hosts up) scanned in 1.41 seconds
ifconfig:
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::5054:ff:fe12:102 prefixlen 64 scopeid 0x20<link>
ether 52:54:00:12:01:02 txqueuelen 1000 (Ethernet)
RX packets 7 bytes 565 (565.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 20 bytes 1578 (1.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions
[lo...]
superseded by https://github.com/mlabs-haskell/spo-anywhere/pull/21
WIP
The goal was to provide cardano-node module with some small first configurability and test it in a local network for block production.
related to issues #12 and #14
fixes #13
Status:
There's 2 modules:
block-producer
,relay-node
- differing by access to secret keys and topology.There's a nixos test which runs the two modules. The test is bugged and passes because it doesn't test the right thing. The nodes run but cannot connect together in the test, as judged by a node traces:
The IPs above are assigned with
virtualisation.vlans = [1];
. Running nmap in the interactive test (run-test block-producer -i
) gives expectedly, but nodes don't connect:TODO:
extraNodeConfig.ShelleyGenesisFile