diff --git a/RUNTIME/ZEN.SECTOR.memory.sh b/RUNTIME/ZEN.SECTOR.memory.sh index 586c3b73..118a1a2b 100755 --- a/RUNTIME/ZEN.SECTOR.memory.sh +++ b/RUNTIME/ZEN.SECTOR.memory.sh @@ -52,6 +52,7 @@ if [[ -s ~/.zen/tmp/${MOATS}/${REGION}.g1history.json ]]; then todate=$(echo "$intercom" | rev | cut -d ':' -f 2 | rev) echo "SYNC ${SECTOR} <= $todate => $ipfs_pop" + ## TODO: SECURITY PATCH : check payment emitter is from BOOSTRAP if [[ $ipfs_pop ]]; then g1pub=$(jq -r '.[] | select(.comment | test("UPLANET:'"${SECTOR}"'")) | .pubkey' ~/.zen/tmp/${MOATS}/${REGION}.g1history.json | tail -n 1) echo "INFO :: $g1pub Memory updater" diff --git a/RUNTIME/ZEN.UMAP.memory.sh b/RUNTIME/ZEN.UMAP.memory.sh index 1e085622..8ab74fea 100755 --- a/RUNTIME/ZEN.UMAP.memory.sh +++ b/RUNTIME/ZEN.UMAP.memory.sh @@ -55,11 +55,11 @@ if [[ -s ~/.zen/tmp/${MOATS}/${SECTOR}.g1history.json ]]; then todate=$(echo "$intercom" | rev | cut -d ':' -f 2 | rev) echo "SYNC ~/.zen/tmp/${MOATS}/${UMAP} <=> $ipfs_pop" - ## TODO: SECURITY PATCH : check payment emitter is UMAPG1PUB + ## TODO: SECURITY PATCH : check payment emitter is from BOOSTRAP if [[ $ipfs_pop ]]; then echo "FOUND $todate MEMORY SLOT" g1pub=$(jq -r '.[] | select(.comment | test("UPLANET:'"${UMAP}"'")) | .pubkey' ~/.zen/tmp/${MOATS}/${SECTOR}.g1history.json | tail -n 1) - [[ "$g1pub" != "$G1PUB" ]] && echo "INFO :: $g1pub Memory updater" + echo "INFO :: $g1pub Memory updater" ipfs --timeout 180s get -o ~/.zen/tmp/${MOATS}/${UMAP} $ipfs_pop \ || echo "$ipfs_pop ERROR ... " else