Skip to content

Commit

Permalink
Release 117 + More Seed Nodes
Browse files Browse the repository at this point in the history
Added Captain's nodes back in with foundation nodes
  • Loading branch information
Hansen333 committed Mar 20, 2023
2 parents 2ada82e + 2765735 commit ca0a0d3
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### DERO HE Changelog

### Release 117
* Out of memory bug fix(Reported by Slixe)

### Release 116
* Added miniblock spam fix(Bug reported by Slixe)
Expand Down
1 change: 1 addition & 0 deletions build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ BASEDIR=$(dirname $0)
ABSPATH=$(readlink -f $0)
ABSDIR=$(dirname $ABSPATH)

rm build/dero_windows_amd64*

unset GOPATH

Expand Down
9 changes: 7 additions & 2 deletions build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,13 @@ for PLATFORM in $PLATFORMS; do
OUTPUT_DIR="${ABSDIR}/build/dero_${GOOS}_${GOARCH}"
BIN_FILENAME="${OUTPUT}-${GOOS}-${GOARCH}"
echo mkdir -p $OUTPUT_DIR
if [[ "${GOOS}" == "windows" ]]; then BIN_FILENAME="${BIN_FILENAME}.exe"; fi
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build -trimpath -ldflags=-buildid= -gcflags=${GCFLAGS} -o $OUTPUT_DIR/${BIN_FILENAME} $package"
if [[ "${GOOS}" == "linux" && "${GOARCH}" == "amd64" ]] ; then
CGO_ENABLED=0
CMD="CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build -trimpath -ldflags=-buildid= -gcflags=${GCFLAGS} -o $OUTPUT_DIR/${BIN_FILENAME} $package"
else
if [[ "${GOOS}" == "windows" ]]; then BIN_FILENAME="${BIN_FILENAME}.exe"; fi
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build -trimpath -ldflags=-buildid= -gcflags=${GCFLAGS} -o $OUTPUT_DIR/${BIN_FILENAME} $package"
fi
echo "${CMD}"
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"

Expand Down
12 changes: 8 additions & 4 deletions config/seed_nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ package config
// some seed nodes for mainnet (these seed node are not compliant with earlier protocols)
// only version 2
var Mainnet_seed_nodes = []string{
// "89.38.99.117:8443", // official seed node - not working
// "109.236.81.137:8080", // official seed node - not working
// "89.38.97.110:11011", // official seed node - not working
// "190.2.136.120:11011", // official seed node - not working
"89.38.99.117:8443", // official seed node
"109.236.81.137:8080", // official seed node
"89.38.97.110:11011", // official seed node
"190.2.136.120:11011", // official seed node
"74.208.54.173:50404", // (deronfts)
"85.214.253.170:53387", // (mmarcel-vps)
"51.222.86.51:11011", // (RabidMining Pool)
Expand All @@ -33,6 +33,10 @@ var Mainnet_seed_nodes = []string{
"213.171.208.37:18089", // (🔥 MySrvCloud 🔥)
"44.198.24.170:20000", // (pieswap)
"15.235.184.172:11011", // dero-node-sg.mysrv.cloud
"209.58.186.186:11011", // foundation seed node
"78.159.118.236:11011", // foundation seed node
"23.81.165.146:11011", // foundation seed node
"85.17.52.28:11011", // foundation seed node
}

// some seed node for testnet
Expand Down
2 changes: 1 addition & 1 deletion config/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ import "github.com/blang/semver/v4"

// right now it has to be manually changed
// do we need to include git commitsha??
var Version = semver.MustParse("3.5.3-116.DEROHE.STARGATE+16022023")
var Version = semver.MustParse("3.5.3-117.DEROHE.STARGATE+18032023")
2 changes: 1 addition & 1 deletion p2p/chain_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ try_again:
goto try_again

} else if chain.Get_Height()-response.Common.Height >= 0 && chain.Get_Height()-response.Start_height <= config.STABLE_LIMIT {
pop_count = chain.Load_TOPO_HEIGHT() - response.Start_topoheight
//pop_count = chain.Load_TOPO_HEIGHT() - response.Start_topoheight
} else if chain.Get_Height()-response.Start_height > config.STABLE_LIMIT { // we must somehow notify that deviation is way too much and manual interaction is necessary, so as any bug for chain deviationmay be detected
connection.logger.V(1).Error(nil, "we have or others have deviated too much.you may have to use --sync-node option", "our topoheight", chain.Load_TOPO_HEIGHT(), "peer topoheight start", response.Start_topoheight)
return
Expand Down
6 changes: 6 additions & 0 deletions p2p/rpc_object_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ func (connection *Connection) GetObject(request ObjectList, response *Objects) e
return nil
}

if len(request.Block_list) > 4096 || len(request.Tx_list) > 4096 || len(request.Chunk_list) > 128 || len(request.Block_list)+len(request.Tx_list)+len(request.Chunk_list) > 4096 { // we are expecting max 4096 items
connection.logger.V(2).Info("malformed object request received, banning peer", "request", request)
connection.exit("malformed object request received")
return nil
}

connection.update(&request.Common) // update common information

for i := range request.Block_list { // find the block
Expand Down

0 comments on commit ca0a0d3

Please sign in to comment.