You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I send transaction to contract and get trx_id.
Then, I query the transaction pushed from mongodb. I find: updatedAt - createdAt = 34 seconds.
How to make transaction irreversible in mongdb in 3 seconds.
[root@psn230m2 node]# cl push action ab add '
> {
> "account": "alice",
> "name": "lis4",
> "age": "22",
> "phonenumber": 13911113333,
> "address": "address"
> }' -p alice; cl get info
executed transaction: e8d4dc466178ebaf287a2eefd0b5257430a1063a2eb6ff8ecd8833df7141f311 136 bytes 371 us
# ab <= ab::add {"account":"alice","name":"lis4","age":22,"phonenumber":"13911113333","address":"address"...
warning: transaction executed locally, but may not be confirmed by the network yet ]
{
"server_version": "b24a643a",
"chain_id": "cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f",
"head_block_num": 12630,
"last_irreversible_block_num": 12627,
"last_irreversible_block_id": "00003153c189190ff3581b3ebbb74f7b7342cc6dae2c3dce78d14e14e7c9cd03",
"head_block_id": "000031565edfffa072fac5cb73117f9b7353aa9523f83a7b9d67b13e78fbab74",
"head_block_time": "2019-11-13T08:13:39.000",
"head_block_producer": "prod1",
"current_view": 2,
"target_view": 3,
"last_stable_checkpoint_block_num": 12601,
"virtual_block_cpu_limit": 200000000,
"virtual_block_net_limit": 1048576000,
"block_cpu_limit": 199529,
"block_net_limit": 1048440,
"server_version_string": "v3.0.2"
}
In batch-pbft, irreversible_block signals are emitted upon the lscb advancing, and by default, old plugins tend to capture these signals to update their db status. Probably for a better experience, we will introduce a new channel dedicatedly emitting newly applied libs signals.
Image: boscore/bos:v3.0.2
Contracts: v3.0.2
Block producers: 3
I send transaction to contract and get trx_id.
Then, I query the transaction pushed from mongodb. I find: updatedAt - createdAt = 34 seconds.
How to make transaction irreversible in mongdb in 3 seconds.
The text was updated successfully, but these errors were encountered: