An intelligent contract processing method is disclosed for performing cross-link communication between a transaction chain and a contract chain, including monitoring whether an intelligent contract call occurs at a node of the transaction chain; if so, the intelligent contract call is sent to the corresponding contract address of the contract chain. The intelligent contract processing method disclosed in the invention monitors and forwards the transaction information between the transaction chain and the contract chain by setting a monitoring node, and shares the operation pressure of the transaction chain node. The node of the transaction chain only needs to keep the connection with other nodes in the chain and the monitoring node, and the monitoring node is responsible for processing the transaction chain. And the transaction information of the contract chain effectively reduces the workload of the transaction chain nodes, improves the operation and processing capacity of the whole regional chain system, and enhances the ability of the block chain system to expand outward. The invention also discloses a monitoring device, an intelligent contract processing system and a computer readable storage medium.
【技术实现步骤摘要】
智能合约处理方法及系统、监听设备及存储介质
本专利技术涉及区块链
,尤其涉及一种智能合约处理方法、一种智能合约处理系统、一种监听设备以及一种计算机可读存储介质。
技术介绍
同构区块链跨链通常需要涉及跨链通信的处理,原有技术方案采用的方法是由区块链的记账节点在本链记录下区块后,向目标链的记账节点进行转发,这样的方式实现起来比较容易,然而也会面临一些问题:1.工作负担重,记账节点在进行区块记账共识的同时,还需要负责跨链交易的转发,这样会很大程度上增加记账节点的工作负荷,存在降低运行效率的风险,使记账节点的处理能力成为整个系统的运行瓶颈,以至于降低整体区块链系统的处理能力;2.通信压力大,转发跨链交易需要记账节点维护与其他所有潜在跨链对象的通信连接,这种方式在跨链潜在对象较少的情况下影响不大,但当区块链系统足够庞大时,同时维护若干个区块链中各个记账节点,通信连接将会是巨大的负担,这也将降低区块链的处理能力,限制区块链横向扩展的能力。
技术实现思路
为了克服现有技术的不足,本专利技术的目的之一公开一种智能合约处理方法,目的之二公开一种监听设备,目的之三公开一种智能合约处理系统,目的之四公开一种计算机可读存储介质,用以解决交易链的记帐节点处理量大、工作负荷重,导致降低了整个区块链系统的运行处理能力的问题。本专利技术的目的之一采用如下技术方案实现:一种智能合约处理方法,用于执行交易链与合约链之间的跨链通信,包括:监听交易链的节点是否发生智能合约调用;若是,则将所述智能合约调用发送至合约链相应的合约地址。优选地,所述智能合约处理方法还包括判断由所述智能合约调用产生的合 ...
【技术保护点】
1.一种智能合约处理方法,用于执行交易链与合约链之间的跨链通信,其特征在于,包括:监听交易链的节点是否发生智能合约调用;若是,则将所述智能合约调用发送至合约链相应的合约地址。
【技术特征摘要】
1.一种智能合约处理方法,用于执行交易链与合约链之间的跨链通信,其特征在于,包括:监听交易链的节点是否发生智能合约调用;若是,则将所述智能合约调用发送至合约链相应的合约地址。2.根据权利要求1所述的智能合约处理方法,其特征在于,还包括:判断由所述智能合约调用产生的合约链账户交易是否在所述合约链中被打包进新的区块,若所述合约链账户交易被打包进新的区块,判定所述合约链账户交易成功。3.根据权利要求2所述的智能合约处理方法,其特征在于:判定所述合约链账户交易成功后,将所述智能合约调用产生的交易链账户交易在所述交易链中打包进新的区块。4.根据权利要求2所述的智能合约处理方法,其特征在于:若所述合约链账户交易未被打包进新的区块,判断发送所述智能合约调用是否已经超过预设时长,若超过预设时长,则重新发送所述智能合约调用。5.根据权利要求1所述的智能合约处理方法,其特征在于:将所述智能合约调用发送至合约链之前,对所述智能合约调用进行鉴权。6.根据权利要求2所述的智能合约处理方法,其特征在于:将所述智能...
【专利技术属性】
技术研发人员:刘智群,
申请(专利权)人:深圳市网心科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。