新增用户钱包时候设置为固定地址

pull/1/head
liushaodong 5 years ago
parent e25213b617
commit 1182129368
  1. 4
      blockchain-server/blockchain-server-btc/src/main/java/com/blockchain/server/btc/service/impl/BtcWalletServiceImpl.java

@ -61,8 +61,8 @@ public class BtcWalletServiceImpl<psvm> implements BtcWalletService {
//btc钱包地址长度为35位 uuid为36位
address = UUID.randomUUID().toString().substring(1);
String privateKey = "MEMlDf3GEMAKXxVi9XxJ6DCjJSKYoZXezMqeIWekcg455DJDCZhIPYbkiRKEy06T7iMaZVj3PPky+xmr7S32hwvRS2ANJ+OD/s5FODwmg5n2N3bhpLeRjqPvhFj3CCOXP01mBAodGUwJTDLy4UaZCOVr7dd9EAU33Xj37+OPcng=";
btcAddressSetRedisUtils.insert(address);
btcWalletKeyService.insertWalletKey(address, privateKey);
// btcAddressSetRedisUtils.insert(address);
// btcWalletKeyService.insertWalletKey(address, privateKey);
} catch (Exception e) {
throw new BtcException(BtcEnums.CREATE_WALLET_ERROR);
}

Loading…
Cancel
Save