A smart contract is a kind of code deployed on the blockchain that executes automatically once an event triggers a clause in the contract. Since smart contracts involve businesses such as asset transfer, they are more vulnerable to attacks, so it is crucial to ensure the security of smart contracts. Because a smart contract cannot be tampered with once deployed on the blockchain, for smart contract developers, it is necessary to fix vulnerabilities before deployment. Compared with many vulnerability detection tools for smart contracts, the amount of automatic fix approaches for smart contracts is relatively limited. These approaches mainly use defined pattern-based methods or heuristic search algorithms for vulnerability repairs. In this article, we propose RLRep , a reinforcement learning-based approach to provide smart contract repair recommendations for smart contract developers automatically. This approach adopts an agent to provide repair action suggestions based on the vulnerable smart contract without any supervision, which can solve the problem of missing labeled data in machine learning-based repair methods. We evaluate our approach on a dataset containing 853 smart contract programs (programming language: Solidity) with different kinds of vulnerabilities. We split them into training and test sets. The result shows that our approach can provide 54.97% correct repair recommendations for smart contracts.
Chest pain experienced by patients with coronary artery disease can be partly due to gastroesophageal reflux-induced chest pain (GERP). Empirical proton pump inhibitor (PPI) therapy has been recommended as an initial clinical approach for treating GERP. However, PPI use may lead to some health problems. The Gastroesophageal Reflux Disease Questionnaire (GerdQ) may represent a noninvasive and cost-effective approach for avoiding PPI misuse and for identifying the appropriate patients for the PPI trial test. The aim of this pilot study was to prospectively evaluate the association between GerdQ scores and PPI response in patients with coronary artery disease (CAD) and GERP to determine whether the GerdQ predicts the PPI response in patients with CAD and GERP and to further validate the clinical application value of the GerdQ. A total of 154 consecutive patients with potential GERP were recruited to complete a GerdQ with subsequent PPI therapy. Based on the PPI trial result, patients were divided into a PPI-positive response group and a PPI-negative response group. The difference in the GerdQ scores between the two groups was assessed. The receiver operating characteristic (ROC) curve of GerdQ score was drawn according to the PPI response as the gold standard. The ability of GerdQ to predict the PPI response was assessed. A total of 96 patients completed the entire study; 62 patients (64.6%) were assigned to the PPI-positive response group, and 34 patients (35.4%) to the PPI-negative response group. The GerdQ score of the PPI-positive response group (8.11 ± 3.315) was significantly higher than that of the PPI-negative response group (4.41 ± 2.743), and the difference was statistically significant (t = 5.863, P = 0.000). The ROC curve was drawn according to a PPI response assessment result with a score above 2 as the gold standard. The area under curve was 0.806. When the critical value of GerdQ score was 7.5, Youden index was up to 0.514, the diagnostic sensitivity was 0.661, and the diagnostic specificity was 0.853. A GerdQ score greater than 7.5 better predicts the response to the PPI trial therapy. There is a strong association between the GerdQ score and the response to PPI therapy. Higher GerdQ scores were predictive of a positive PPI response in CAD patients with GERP. The GerdQ may be a reasonable screening tool for GERP in patients with CAD who are prepared to accept PPI therapy.
11 October 2023 in IEEE Transactions on Services Computing
Blockchain-based cryptocurrencies have developed rapidly in recent years, however, scalability is one of the biggest challenge. Payment channel networks (PCNs) are one of the important solutions to blockchain scalability and routing is the most critical problem in PCN. Routing algorithms in PCNs have evolved fast and achieved high throughput. However, most of these routing algorithms are designed from the perspective of technical feasibility, and few algorithms focus on the incentives of each off-chain participant, especially the economic incentives for intermediate routing nodes. Besides, due to the highly dynamic nature of off-chain channel deposits, existing routing algorithms rely heavily on channel deposit probing in order to ensure high throughput. In this paper, we design routing algorithms from an incentive perspective to improve the profit of intermediate nodes and use deep learning to reduce the dependency of off-chain routing on channel deposit probing. Our experiments show that under the same model, MDRL-IR can increase the profit of intermediate nodes by up to 1.87x and increase the throughput by up to 2.0x compared to the state-of-the-art routing algorithm, while ensuring that the user routing cost per unit throughput remains unchanged. Moreover, approximate performance can be achieved when deposit probing is greatly reduced.