Skip to content

Commit

Permalink
新增主节点发送自身账号交易信息到子节点查找后回存到主节点本地数据库;Web接口新增重启,手动添加Peer功能 (bnb-chain#6)
Browse files Browse the repository at this point in the history
* 主节点广播

* 1

* 1

* 重启服务器命令

* 新增手动添加节点

* AddPeer节点

* Warning Msg

* 调整参数

* Log

* 主节点DB查看信息

* 新增Redis全局事件通知钉钉

* 去除本地储存Node信息

* 新增主节点发送自身账号交易信息到子节点查找后回存到主节点本地数据库;Web接口新增重启,手动添加Peer功能
  • Loading branch information
swlfigo authored Mar 23, 2023
1 parent a371bc5 commit b4f9de5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/arb
Submodule arb updated from 90d47d to 4c2304
11 changes: 5 additions & 6 deletions eth/protocols/eth/peer_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package eth

import (
"errors"
"github.com/ethereum/go-ethereum/log"
"sync"
)

Expand All @@ -24,11 +23,11 @@ func GetPeerManagerInstance() *peerManager {
}

func (p *peerManager) savePeerInfo(peer *Peer) {
if _, foundedPeer := p.peers[peer.ID()]; !foundedPeer {
//储存Peer信息
p.peers[peer.ID()] = peer.Peer.Node().URLv4()
log.Debug("Save Peer Info", peer.Peer.Node().URLv4())
}
//if _, foundedPeer := p.peers[peer.ID()]; !foundedPeer {
// //储存Peer信息
// p.peers[peer.ID()] = peer.Peer.Node().URLv4()
// log.Debug("Save Peer Info", peer.Peer.Node().URLv4())
//}
}

func (p *peerManager) fetchPeerEncodeID(peerID string) (string, error) {
Expand Down

0 comments on commit b4f9de5

Please sign in to comment.