Skip to content

Commit

Permalink
add addressbook
Browse files Browse the repository at this point in the history
  • Loading branch information
smk762 committed Mar 18, 2024
1 parent 2c71b04 commit 0b1ed07
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
66 changes: 66 additions & 0 deletions addrbook.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit 0b1ed07

Please sign in to comment.