mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
User protocol upgrade and js client lib. (#191)
* Unified js client lib for browser and nodejs. * Client lib multiple connections support. * Implemented server challenge response. * Contract guid and version validation. * Server key validation. * User json message encoding improvements.
This commit is contained in:
@@ -84,7 +84,7 @@ do
|
||||
|
||||
# Update contract config.
|
||||
node -p "JSON.stringify({...require('./tmp.json'), \
|
||||
contractid: 'dummy', \
|
||||
contractid: '3c349abe-4d70-4f50-9fa6-018f1f2530ab', \
|
||||
binary: '$binary', \
|
||||
binargs: '$binargs', \
|
||||
appbill: '', \
|
||||
|
||||
@@ -364,7 +364,7 @@ do
|
||||
|
||||
# Merge json contents to produce final contract config.
|
||||
echo "$(cat ./cfg/node$n.cfg)" \
|
||||
'{"contractid":"dummy"}' \
|
||||
'{"contractid":"3c349abe-4d70-4f50-9fa6-018f1f2530ab"}' \
|
||||
'{"binary":"/usr/bin/node"}' \
|
||||
'{"binargs":"'$basedir'/hpfiles/nodejs_contract/echo_contract.js"}' \
|
||||
'{"peers":'${mypeers}'}' \
|
||||
|
||||
Reference in New Issue
Block a user