From 57f1c5b646528c9714a0ec7b022a0a30d4487bab Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 11 Jun 2014 14:15:00 +0200 Subject: [PATCH] Add testnet3 mode If the application versionName contains "-test", switch to testnet mode. --- assets/checkpoints-testnet | Bin 0 -> 10677 bytes src/com/bonsai/wallet32/Constants.java | 37 ++++++++++++++++++ .../bonsai/wallet32/PairWalletActivity.java | 3 +- .../wallet32/RestoreWalletActivity.java | 3 +- src/com/bonsai/wallet32/WalletService.java | 5 +-- src/com/bonsai/wallet32/WalletUtil.java | 3 +- 6 files changed, 42 insertions(+), 9 deletions(-) create mode 100644 assets/checkpoints-testnet create mode 100644 src/com/bonsai/wallet32/Constants.java diff --git a/assets/checkpoints-testnet b/assets/checkpoints-testnet new file mode 100644 index 0000000000000000000000000000000000000000..1f26befeb143e15aaa41941d018ed6571b6a6d26 GIT binary patch literal 10677 zcmXAucQ}<_9Kg@L*UpyEy=KVB$V&F!>s~~X>=hwGWy>B#SrPh~*@cX(tjvtcP9&9; zO_@LEI`1Ez$N9XU=j-c??>VoshN`l*fxf1mks;elZv(<+jn7UeR~@zM^5{8mt-L9ij8k_&yaRGwIN@I!WXzwgW?xr-4c z2FX`O+!vdg^^cDMGr`Z$c*p}l)efJNpDob;p(=}_*l%~3tb51k!@`?cUiQ(yef9}y z2Ll;`kS=Ar*-lvfDCZ!^oA<@R9zX80L=|P=u0;&x*|e2`3K^-EX8o39c?|3D13Ab8 zAfNyr02s2N-@WO{t+c&|OXw+S$(!nPk2798za;0G;jFw?M+)gWp`imkuJC(at*u?+ z0aL)McjnrL;lJZPMd6+p*ML8Js5bqzV=4@)>HJAfU@PW=4*;w|(Ep_=(z&>Nclm+F zh+or21V;!HPbNQs+Q$8i3^GWcRjqZ7l@jPXOZqwkoM)% z-hAD$yP@j*nEsa8qN@IaNbdoIKEuYvqPa4PLWSoJO)+pBMEf)RSIp+I~U?GBjcDk20A2pOIzA35w#J%SoWqV6UG~?Zt zZNjm_K!%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