aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-07-22 02:26:01 +0800
committerzelig <viktor.tron@gmail.com>2014-07-22 02:26:01 +0800
commit74abc457ada9ef17c39c488a9e7625cecd4e6141 (patch)
treec403357bd2f44c644f32b8c88ba27519846c8e20 /ethereal
parent9f7d8ff302f33b61acae4a8724686e868ba94ccd (diff)
downloadgo-tangerine-74abc457ada9ef17c39c488a9e7625cecd4e6141.tar
go-tangerine-74abc457ada9ef17c39c488a9e7625cecd4e6141.tar.gz
go-tangerine-74abc457ada9ef17c39c488a9e7625cecd4e6141.tar.bz2
go-tangerine-74abc457ada9ef17c39c488a9e7625cecd4e6141.tar.lz
go-tangerine-74abc457ada9ef17c39c488a9e7625cecd4e6141.tar.xz
go-tangerine-74abc457ada9ef17c39c488a9e7625cecd4e6141.tar.zst
go-tangerine-74abc457ada9ef17c39c488a9e7625cecd4e6141.zip
reactor event channels have large buffer to allow more tolerance
Diffstat (limited to 'ethereal')
-rw-r--r--ethereal/ext_app.go4
-rw-r--r--ethereal/gui.go12
2 files changed, 8 insertions, 8 deletions
diff --git a/ethereal/ext_app.go b/ethereal/ext_app.go
index 736b059e5..ee723fc3d 100644
--- a/ethereal/ext_app.go
+++ b/ethereal/ext_app.go
@@ -38,8 +38,8 @@ type ExtApplication struct {
func NewExtApplication(container AppContainer, lib *UiLib) *ExtApplication {
app := &ExtApplication{
ethpub.NewPEthereum(lib.eth),
- make(chan ethreact.Event, 10),
- make(chan ethreact.Event, 10),
+ make(chan ethreact.Event, 100),
+ make(chan ethreact.Event, 100),
make(chan bool),
make(chan bool),
container,
diff --git a/ethereal/gui.go b/ethereal/gui.go
index bfae97050..9bc11e81e 100644
--- a/ethereal/gui.go
+++ b/ethereal/gui.go
@@ -281,12 +281,12 @@ func (self *Gui) getObjectByName(objectName string) qml.Object {
func (gui *Gui) update() {
var (
- blockChan = make(chan ethreact.Event, 1)
- txChan = make(chan ethreact.Event, 1)
- objectChan = make(chan ethreact.Event, 1)
- peerChan = make(chan ethreact.Event, 1)
- chainSyncChan = make(chan ethreact.Event, 1)
- miningChan = make(chan ethreact.Event, 1)
+ blockChan = make(chan ethreact.Event, 100)
+ txChan = make(chan ethreact.Event, 100)
+ objectChan = make(chan ethreact.Event, 100)
+ peerChan = make(chan ethreact.Event, 100)
+ chainSyncChan = make(chan ethreact.Event, 100)
+ miningChan = make(chan ethreact.Event, 100)
)
peerUpdateTicker := time.NewTicker(5 * time.Second)