Enable just the best 7 BitShares nodes for the Mexico region.

- Disable the Memo field for now, we will fix and enable it later.
This commit is contained in:
Severiano Jaramillo 2018-12-15 10:19:58 -06:00
parent 41f7541918
commit d425e4eece
2 changed files with 15 additions and 27 deletions

View file

@ -411,16 +411,16 @@ class SendTransactionFragment : Fragment(), ZXingScannerView.ResultHandler, Serv
val privateKey = ECKey.fromPrivate(DumpedPrivateKey.fromBase58(null, wifKey).key.privKeyBytes) val privateKey = ECKey.fromPrivate(DumpedPrivateKey.fromBase58(null, wifKey).key.privKeyBytes)
// Add memo if exists // Add memo if exists TODO enable memo
val memoMsg = tietMemo.text.toString() // val memoMsg = tietMemo.text.toString()
if (memoMsg.isNotEmpty()) { // if (memoMsg.isNotEmpty()) {
val nonce = SecureRandomGenerator.getSecureRandom().nextLong().toBigInteger() // val nonce = SecureRandomGenerator.getSecureRandom().nextLong().toBigInteger()
val encryptedMemo = Memo.encryptMessage(privateKey, destinationPublicKey!!, nonce, memoMsg) // val encryptedMemo = Memo.encryptMessage(privateKey, destinationPublicKey!!, nonce, memoMsg)
val from = Address(ECKey.fromPublicOnly(privateKey.pubKey)) // val from = Address(ECKey.fromPublicOnly(privateKey.pubKey))
val to = Address(destinationPublicKey!!.key) // val to = Address(destinationPublicKey!!.key)
val memo = Memo(from, to, nonce, encryptedMemo) // val memo = Memo(from, to, nonce, encryptedMemo)
operationBuilder.setMemo(memo) // operationBuilder.setMemo(memo)
} // }
val operations = ArrayList<BaseOperation>() val operations = ArrayList<BaseOperation>()
operations.add(operationBuilder.build()) operations.add(operationBuilder.build())

View file

@ -9,25 +9,13 @@ class BitsyApplication : Application() {
private val BITSHARES_NODE_URLS = arrayOf( private val BITSHARES_NODE_URLS = arrayOf(
// PP private nodes // PP private nodes
"wss://nl.palmpay.io/ws", "wss://nl.palmpay.io/ws",
"wss://mx.palmpay.io/ws",
// Other public nodes // Other public nodes
"wss://bitshares.nu/ws", // Stockholm, Sweden "wss://bitshares.nu/ws", // Stockholm, Sweden
"wss://bitshares.openledger.info/ws", // Openledger node "wss://bitshares.openledger.info/ws", // Openledger node
"wss://dallas.bitshares.apasia.tech/ws", // Dallas, USA "wss://dallas.bitshares.apasia.tech/ws", // Dallas, USA
"wss://atlanta.bitshares.apasia.tech/ws", // Atlanta, USA "wss://atlanta.bitshares.apasia.tech/ws", // Atlanta, USA
"wss://miami.bitshares.apasia.tech/ws", // Miami, USA
"wss://valley.bitshares.apasia.tech/ws", // Silicon Valley, USA
"wss://england.bitshares.apasia.tech/ws", // London, UK
"wss://netherlands.bitshares.apasia.tech/ws", // Amsterdam, Netherlands
"wss://australia.bitshares.apasia.tech/ws", // Sidney, Australia
"wss://bit.btsabc.org/ws", // Hong Kong, China
"wss://node.btscharts.com/ws", // Beijing, Chinawss://node.btscharts.com/ws
"wss://ws.gdex.top", // Shanghai, China
"wss://dex.rnglab.org", // Amsterdam, Netherlands "wss://dex.rnglab.org", // Amsterdam, Netherlands
"wss://api.bts.blckchnd.com", // Falkenstein, Germany
"wss://api-ru.bts.blckchnd.com", // Moscow, Russia
"wss://crazybit.online", // Shenzhen, China?
"wss://citadel.li/node" "wss://citadel.li/node"
) )