chia-datalayer
Advanced tools
Comparing version 2.0.1 to 2.0.9
{ | ||
"name": "chia-datalayer", | ||
"version": "2.0.1", | ||
"version": "2.0.9", | ||
"description": "Wrapper for Chia DataLayer RPCs", | ||
@@ -23,6 +23,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"chia-fee-estimator": "^1.0.1", | ||
"chia-fee-estimator": "^1.0.7", | ||
"chia-root-resolver": "^1.0.0", | ||
"superagent": "^8.0.9" | ||
"superagent": "^8.1.2" | ||
} | ||
} |
@@ -40,3 +40,3 @@ const { callAndAwaitChiaRPC } = require("./rpc-base"); | ||
return callAndAwaitChiaRPC( | ||
`${config.datalayer_host}/create_data_store`, | ||
`${this.config.datalayer_host}/create_data_store`, | ||
params, | ||
@@ -173,3 +173,3 @@ this.config, | ||
return callAndAwaitChiaRPC( | ||
`${config.datalayer_host}/get_value`, | ||
`${this.config.datalayer_host}/get_value`, | ||
params, | ||
@@ -176,0 +176,0 @@ this.config, |
@@ -40,3 +40,6 @@ const superagent = require("superagent"); | ||
console.log(`Calling Chia RPC: ${url}`); | ||
if (config.verbose) { | ||
console.log(`POST: ${url}`); | ||
console.log(JSON.stringify(body)); | ||
} | ||
@@ -66,3 +69,3 @@ try { | ||
throw new Error( | ||
`FAILED: Calling Chia RPC: ${url} ${JSON.stringify(response.body)}}}` | ||
`FAILED: POST: ${url}` | ||
); | ||
@@ -76,3 +79,3 @@ } | ||
if (attempt + 1 < options.maxAttempts) { | ||
console.error("Retrying..."); | ||
console.error(`Retrying: POST: ${url}`); | ||
} else { | ||
@@ -79,0 +82,0 @@ return { success: false, error: error.message }; |
@@ -15,2 +15,3 @@ const os = require("os"); | ||
allowUnverifiedCert: true, | ||
verbose: false | ||
}; | ||
@@ -17,0 +18,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12403
408
Updatedchia-fee-estimator@^1.0.7
Updatedsuperagent@^8.1.2