mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 17:22:04 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9463afcbc3 | ||
|
|
13a1e1b1db |
@@ -568,11 +568,14 @@ class RawTransactions {
|
|||||||
// accidental double spends can be reduced.
|
// accidental double spends can be reduced.
|
||||||
sendTxOptions (options) {
|
sendTxOptions (options) {
|
||||||
try {
|
try {
|
||||||
if (process.env.RPC_SENDURL) {
|
const sendUrl = process.env.RPC_SENDURL
|
||||||
console.log(`original options: ${JSON.stringify(options, null, 2)}`)
|
|
||||||
|
if (sendUrl !== 'undefined' && sendUrl !== undefined) {
|
||||||
|
// console.log(`original options: ${JSON.stringify(options, null, 2)}`)
|
||||||
|
|
||||||
options.baseURL = process.env.RPC_SENDURL
|
options.baseURL = process.env.RPC_SENDURL
|
||||||
|
|
||||||
console.log(`modified options: ${JSON.stringify(options, null, 2)}`)
|
// console.log(`modified options: ${JSON.stringify(options, null, 2)}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
|||||||
Reference in New Issue
Block a user