用了 Local.incrementGlobalSlot() 之后,app 里面的 this.network.blockchainLength.get() 还是 0 #349
-
合约代码:
测试代码:
|
Beta Was this translation helpful? Give feedback.
Answered by
coldstar1993
Dec 5, 2024
Replies: 2 comments
-
在LocalBlockchain的本地测试中,通过Local.setBlockchainLength( 888 )来改变 区块高度。 对于LocalBlockchain对象,修改GlobalSlot和BlockchainLength 是独立的。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
linghuccc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在LocalBlockchain的本地测试中,通过Local.setBlockchainLength( 888 )来改变 区块高度。
对于LocalBlockchain对象,修改GlobalSlot和BlockchainLength 是独立的。