Closed gpBlockchain closed 1 year ago
I think I find the problem here.
In the case we call set_scripts
rpc to let light client node to index from block#1755000
. But in the transaction 0xc7751cb8a11d67d6e464100ba20c1e3148a55bce3f434048c00fabac16e3a6c2
, we can see the type script is only exists in input 0x7c51c304d11c16befd2b4e512b137f69cd0571519088a0b1a9d00a4566b37e9c#0
is from block#1683618
(which is less than 1755000), so we not index the input transaction, and therefor we can not get this transaction(0xc775...
) from light client by get_transactions
or get_cells
In practice, we should set the block number in set_scripts
not greater than the first block number the script included block number. In the test case the first block number of the type script is 1680344
, we should use a block number in set_scripts
not greater than 1680344
.
commit:9af874793feca252e37b9f3d25fb9973ad9c74b6
step
set _script :
wait script update 1759625,
js-code
log
Reproductions
git-pod:https://gpblockchai-ckblighttes-j2lpnzh63f0.ws-us71.gitpod.io