| | |
| | | // private static String privateKey = "0xf96f42192569bf8fe340ee56be94c206a12020bc4b46a7b2ec87cde438ac9ac1"; |
| | | |
| | | |
| | | private static String privateKey = AppContants.FEE_ADDRESS_KEY.get("feeAddressKey") == null ? "":AppContants.FEE_ADDRESS_KEY.get("feeAddressKey").toString() ; |
| | | private static String privateKey = AppContants.FEE_ADDRESS_KEY.get("feeAddressKey").toString() ; |
| | | |
| | | private EthFilter getFilter(BigInteger startBlock) { |
| | | if (startBlock != null) { |
| | |
| | | * 监听投注 参数是起始的区块值 |
| | | */ |
| | | public void listenBetting(BigInteger startBlock){ |
| | | System.out.println("启动投注监听事件"); |
| | | System.out.println("启动投注监听事件" + privateKey); |
| | | // 指定密钥文件并进行账号和密码的验证 |
| | | |
| | | System.out.println(privateKey); |
| | | Credentials credentials = Credentials.create(privateKey); |
| | | Abi contract = Abi.load(contractAddr, getInstanceScope(), credentials, new DefaultGasProvider()); |
| | | EthFilter filter = getFilter(startBlock); |