OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
938532a
)
init processChainInfo
author
HAOYUatHZ
<haoyu@protonmail.com>
Wed, 12 Jun 2019 13:39:03 +0000
(21:39 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Wed, 12 Jun 2019 13:39:03 +0000
(21:39 +0800)
federation/synchron/mainchain_keeper.go
patch
|
blob
|
history
diff --git
a/federation/synchron/mainchain_keeper.go
b/federation/synchron/mainchain_keeper.go
index
c53a90d
..
8ae19fe
100644
(file)
--- a/
federation/synchron/mainchain_keeper.go
+++ b/
federation/synchron/mainchain_keeper.go
@@
-108,9
+108,20
@@
func (m *mainchainKeeper) processBlock(block *btmTypes.Block) error {
return err
}
- return nil
+ // for i, tx := range txs {
+ // if isDepositFromMainchain(tx) {
+ // bp.processDepositFromMainchain(uint64(i), tx)
+ // }
+ // if isWithdrawalToMainchain(tx) {
+ // bp.processWithdrawalToMainchain(uint64(i), tx)
+ // }
+ // }
+
+ return m.processChainInfo()
}
+func (m *mainchainKeeper) processChainInfo() error {}
+
func (m *mainchainKeeper) processIssuing(txs []*btmTypes.Tx) error {
for _, tx := range txs {
for _, input := range tx.Inputs {