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