美文网首页区块链学习笔记
Bitshares Transaction process fl

Bitshares Transaction process fl

作者: 杨小伟的世界 | 来源:发表于2018-07-06 14:18 被阅读0次

    Oops , looks toooooo big.

                cli_wallet                                  Full Node                                        itself or other P2P node
    
                                                                                              
                                                                                              evaluator::
                                                                                                  apply()    -> SPECIFIED_EVALUATOR::do_apply()
    
                                                                                                    ^                                              
                                                                                                    |
                                                                                                    
                                                                                              evaluator::
                                                                                                  evaluate() -> SPECIFIED_EVALUATOR::do_evaluate()
    
                                                                                                    ^                                              
                                                                                                    |
                                                                                                    
                                                                                              generic_evaluator::
                                                                                                  start_evaluate()
    
                                                                                                    ^                                              
                                                                                                    |
                                                                                                    
                                                                                              op_evaluator_impl<T>::
                                                                                                  evaluate()
    
                                                                                                    ^                                              
                                                                                                    |
                                                                                                                                                   
         wallet_api_impl::                                                                    database::
             sign_transaction()                                                                   apply_operation()
    
                    |                                                                               ^                                              
                    v                                                                               |
                                                                                                    
         api<network_broadcast_api>::    ------->    network_broadcast_api::                  database::                                                       
             broadcast_transaction()                     broadcast_transaction()                  _apply_transatcion()
    
                                                               |                                    ^                                              
                                                               v                                    |
                                                                                                    
                                                     database::                   ------->    database::
                                                         push_transaction()                       push_transaction()
                                                                                                                                                   
                                                              |                                     ^                                              
                                                 +------------|-------------------------------------|-------------------------------------+
                                                 |            v                                     |                                     |
                                                 |   node::                       ---+        application_impl::                          |
                                                 |       broadcast_transaction()     |            handle_transaction()                    |
                                                 |                                   |              ^                                     |    
                                  P2P Layer      |                                   |              |                                     |    
                                                 |                                   |                                                    |    
                                                 |                                   +--->    node_impl::                                 |
                                                 |                                                process_ordinary_message()              |
                                                 |                                                                                        |
                                                 +----------------------------------------------------------------------------------------+
    
    
    

    相关文章

      网友评论

        本文标题:Bitshares Transaction process fl

        本文链接:https://www.haomeiwen.com/subject/mzfduftx.html