## READ BLOCK CHAIN ##
This commit is contained in:
parent
188b38fe0b
commit
a9b4fae058
|
@ -16,5 +16,16 @@ then
|
|||
echo "$(date -u +%s%N | cut -b1-13)" > ~/.zen/ipfs/.${IPFSNODEID}/.timestamp
|
||||
echo $MIPFS > ~/.zen/ipfs/.${IPFSNODEID}/.chain
|
||||
NODEIPNS=$(ipfs --timeout=60s name publish --quieter /ipfs/$MIPFS)
|
||||
echo "$NODEIPNS:TIME:$(cat ~/.zen/ipfs/.${IPFSNODEID}/.timestamp):CHAIN:$(cat ~/.zen/ipfs/.${IPFSNODEID}/.chain)"
|
||||
fi
|
||||
########################################################################
|
||||
## READ BLOCK CHAIN ##
|
||||
# BLOCKN=$(ipfs cat /ipns/${IPFSNODEID}/.${IPFSNODEID}/.chain)
|
||||
# BLOCK=$(ipfs cat /ipfs/$BLOCKN/.${IPFSNODEID}/.chain)
|
||||
# while [[ $BLOCK ]]
|
||||
# do
|
||||
# TIME=$(ipfs cat /ipfs/$BLOCK/.${IPFSNODEID}/.timestamp)
|
||||
# BLOCK=$(ipfs cat /ipfs/$BLOCK/.${IPFSNODEID}/.chain)
|
||||
# echo $TIME:$BLOCK
|
||||
# done
|
||||
########################################################################
|
||||
|
|
Loading…
Reference in New Issue