事务失败:错误:1014:优先级太低:515000139 vs 515000139

问题描述

我和https://github.com/substrate-developer-hub/substrate-node-template一起玩,并且希望进行以下交易:

enter image description here

但是我得到了

? Transaction Failed: Error: 1014: Priority is too low: (515000139 vs 515000139): The transaction has too low priority to replace another transaction already in the pool.

有什么主意吗?

之所以问这些问题,是因为我想将入职信息存档到Substrate,然后制作介绍视频,其中包含所有这些入职问题,以使将来的开发人员生活更轻松。

解决方法

此错误表示事务队列中已经存在具有相同随机数的事务。这意味着您需要等到下一个块来提交您的tx,或者编写一些自定义逻辑来处理增加随机数并在同一块中提交多个事务。

如果要替换事务队列中的tx,则应使用tip提交新事务以增加优先级,并解决此问题。但是只有一个具有一定随机数的交易才是有效的,因此该带有tip的交易将替换旧的交易。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...