Author Topic: 关于apply_transaction的问题  (Read 3320 times)

0 Members and 1 Guest are viewing this topic.

Offline xiabchina

  • Newbie
  • *
  • Posts: 6
    • View Profile
写块不成功,交易就没有发生,谈不上回滚。

就算真的因为分叉导致回滚,也没有回滚通知的。

另外,如果出现分叉,导致反复确认,通知可能会多于 3 次。
@abit,thanks,这块我要再看看,感觉和undo_database那块一起,还不是太懂

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
写块不成功,交易就没有发生,谈不上回滚。

就算真的因为分叉导致回滚,也没有回滚通知的。

另外,如果出现分叉,导致反复确认,通知可能会多于 3 次。
BitShares committee member: abit
BitShares witness: in.abit

Offline xiabchina

  • Newbie
  • *
  • Posts: 6
    • View Profile
从哪里看到的调用三次?
从p2p网络或者客户端收到交易时调一次,
出块调一次,
验证块调一次。
@abit,厉害了!我看第一次调用后钱包就收到reply了,比如说转账就发生了,为什么还要调第二次,第三次,如果写块失败,交易在哪里回滚吗?

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
从哪里看到的调用三次?
从p2p网络或者客户端收到交易时调一次,
出块调一次,
验证块调一次。
BitShares committee member: abit
BitShares witness: in.abit

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
_apply_transaction是执行交易,我现在转账一次要调用三次_apply_transaction,哪一次才是真正的执行?有人知道吗?
最后一次

请加 Q 群讨论 https://bitsharestalk.org/index.php?topic=25297.0
« Last Edit: March 21, 2018, 08:36:35 pm by abit »
BitShares committee member: abit
BitShares witness: in.abit

Offline ripplexiaoshan

  • Moderator
  • Hero Member
  • *****
  • Posts: 2300
    • View Profile
  • BitShares: jademont
从哪里看到的调用三次?
BTS committee member:jademont

Offline xiabchina

  • Newbie
  • *
  • Posts: 6
    • View Profile
_apply_transaction是执行交易,我现在转账一次要调用三次_apply_transaction,哪一次才是真正的执行?有人知道吗?