fix cold hd split bcd crash
MODIFY
bither-android/AndroidManifest.xml
bither-android/AndroidManifest.xml
xmlns:tools="http://schemas.android.com/tools"
package="net.bither"
android:installLocation="internalOnly"
- android:versionCode="179"
+ android:versionCode="180"
android:versionName="1.7.9">
<uses-sdk

MODIFY
bither-android/src/net/bither/activity/hot/SplitBCCHDAccountMonitoredSendActivity.java
bither-android/src/net/bither/activity/hot/SplitBCCHDAccountMonitoredSendActivity.java
@@ -236,7 +236,7 @@ public class SplitBCCHDAccountMonitoredSendActivity extends SplitBCCSendActivity
private void qrCodeTxTranscation(String...blockHash) {
Intent intent = new Intent(this, UnsignedTxQrCodeActivity.class);
- intent.putExtra(BitherSetting.INTENT_REF.QR_CODE_STRING, QRCodeTxTransport.getSplitCoinHDAccountMonitoredUnsignedTx(txs, toAddress, (HDAccount) address, splitCoin));
+ intent.putExtra(BitherSetting.INTENT_REF.QR_CODE_STRING, QRCodeTxTransport.getSplitCoinHDAccountMonitoredUnsignedTx(txs, toAddress, (HDAccount) address, splitCoin, blockHash));
intent.putExtra(BitherSetting.INTENT_REF.TITLE_STRING, getString(R.string
.unsigned_transaction_qr_code_title));
startActivityForResult(intent, BitherSetting.INTENT_REF.SIGN_TX_REQUEST_CODE);
@@ -268,8 +268,12 @@ public class SplitBCCHDAccountMonitoredSendActivity extends SplitBCCSendActivity
ArrayList<byte[]> sigs = new ArrayList<byte[]>();
for (int j = 0; j < tx.getIns().size(); j++) {
String s = array[strIndex + j];
+ if(splitCoin == SplitCoin.BCD) {
+ sigs.add(Utils.hexStringToByteArray(s));
+ }else {
sigs.add(Utils.hexStringToByteArray(replaceSignHashOfString(s)));
}
+ }
tx.signWithSignatures(sigs);
if (!tx.verifySignatures()) {
success = false;

fix cold hd split bcd crash