From 0b1ed07ce005f19d1d55895cd33546c737059942 Mon Sep 17 00:00:00 2001 From: smk762 Date: Tue, 19 Mar 2024 02:32:35 +0800 Subject: [PATCH] add addressbook --- Dockerfile | 3 ++- addrbook.json | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 addrbook.json diff --git a/Dockerfile b/Dockerfile index a779800..abdf581 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,8 @@ COPY . /nucleus RUN rm -rf .git && git init RUN go mod tidy && go mod download RUN make clean & make build -RUN ls -la /nucleus/build && ls -la /nucleus && python3 ./init.py -b /nucleus/build/nucleusd -c /root/.nucleus --overwrite +RUN python3 ./init.py -b /nucleus/build/nucleusd -c /root/.nucleus --overwrite +COPY addrbook.json /root/.nucleus/config/addrbook.json FROM alpine:latest WORKDIR /nucleus diff --git a/addrbook.json b/addrbook.json new file mode 100644 index 0000000..fdf31fc --- /dev/null +++ b/addrbook.json @@ -0,0 +1,66 @@ +{ + "key": "497075342829686107d7ed99", + "addrs": [ + { + "addr": { + "id": "58ac485c23e2b53a1161e3a372a31d5b055be7b3", + "ip": "49.12.106.183", + "port": 26656 + }, + "src": { + "id": "0f2f91710c4237c02136adc69d54162c499f15d0", + "ip": "0.0.0.0", + "port": 26656 + }, + "buckets": [ + 29 + ], + "attempts": 0, + "bucket_type": 2, + "last_attempt": "2024-03-16T15:43:59.130877038Z", + "last_success": "2024-03-16T15:43:59.130877038Z", + "last_ban_time": "0001-01-01T00:00:00Z" + }, + { + "addr": { + "id": "0c6852e2351afd50c0eef12b6cba6529398dd21e", + "ip": "94.130.96.247", + "port": 26656 + }, + "src": { + "id": "0f2f91710c4237c02136adc69d54162c499f15d0", + "ip": "0.0.0.0", + "port": 26656 + }, + "buckets": [ + 46 + ], + "attempts": 0, + "bucket_type": 2, + "last_attempt": "2024-03-18T13:46:02.481973943Z", + "last_success": "2024-03-18T13:46:02.481973943Z", + "last_ban_time": "0001-01-01T00:00:00Z" + }, + { + "addr": { + "id": "32b3f2d6a5ee4848a7eb97bd70db516ccfdf1d02", + "ip": "65.109.174.10", + "port": 26656 + }, + "src": { + "id": "0f2f91710c4237c02136adc69d54162c499f15d0", + "ip": "0.0.0.0", + "port": 26656 + }, + "buckets": [ + 43 + ], + "attempts": 54, + "bucket_type": 2, + "last_attempt": "2024-03-18T13:47:48.394436606Z", + "last_success": "2023-09-15T14:24:33.076681677Z", + "last_ban_time": "0001-01-01T00:00:00Z" + } + ] + } + \ No newline at end of file