mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Added contract id verification. (#180)
* Added contract id config. * Verify contract id with user/peer challenge. * Updated cluster scripts. * Updated node client lib for contract id verification.
This commit is contained in:
@@ -73,6 +73,7 @@ do
|
||||
|
||||
# Update contract config.
|
||||
node -p "JSON.stringify({...require('./tmp.json'), \
|
||||
contractid: 'dummy', \
|
||||
binary: '$binary', \
|
||||
binargs: '$binargs', \
|
||||
appbill: '', \
|
||||
|
||||
@@ -346,6 +346,7 @@ do
|
||||
|
||||
# Merge json contents to produce final contract config.
|
||||
echo "$(cat ./cfg/node$n.cfg)" \
|
||||
'{"contractid":"dummy"}' \
|
||||
'{"binary":"/usr/bin/node"}' \
|
||||
'{"binargs":"'$basedir'/hpfiles/nodejs_contract/echo_contract.js"}' \
|
||||
'{"peers":'${mypeers}'}' \
|
||||
|
||||
Reference in New Issue
Block a user