aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklin <mr_franklin@126.com>2018-11-20 22:16:40 +0800
committerFranklin <mr_franklin@126.com>2018-11-20 22:16:40 +0800
commit21dd59bd047d1f291c1a773b690825a3654ea969 (patch)
tree39ac1431427c6cfa0fd5d111462f237066413ba4
parent3d997b6decfaa42e37521ae20bf58886c8b2de8f (diff)
downloadgo-tangerine-21dd59bd047d1f291c1a773b690825a3654ea969.tar.gz
go-tangerine-21dd59bd047d1f291c1a773b690825a3654ea969.tar.zst
go-tangerine-21dd59bd047d1f291c1a773b690825a3654ea969.zip
.
-rw-r--r--core/blockchain.go6
-rw-r--r--node/node.go2
-rw-r--r--rpc/ipc.go6
3 files changed, 9 insertions, 5 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index d173b2de2..ee1c0702b 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -445,7 +445,11 @@ func (bc *BlockChain) repair(head **types.Block) error {
return nil
}
// Otherwise rewind one block and recheck state availability there
- (*head) = bc.GetBlock((*head).ParentHash(), (*head).NumberU64()-1)
+ block := bc.GetBlock((*head).ParentHash(), (*head).NumberU64()-1)
+ if block == nil {
+ return fmt.Errorf("failed to repair block, can not get block at height %d", (*head).NumberU64())
+ }
+ (*head) = block
}
}
diff --git a/node/node.go b/node/node.go
index 85299dba7..0a931a9dd 100644
--- a/node/node.go
+++ b/node/node.go
@@ -322,7 +322,7 @@ func (n *Node) stopIPC() {
n.ipcListener.Close()
n.ipcListener = nil
- n.log.Info("IPC endpoint closed", "endpoint", n.ipcEndpoint)
+ n.log.Info("IPC endpoint closed", "url", n.ipcEndpoint)
}
if n.ipcHandler != nil {
n.ipcHandler.Stop()
diff --git a/rpc/ipc.go b/rpc/ipc.go
index b05e503d7..1467f7a0c 100644
--- a/rpc/ipc.go
+++ b/rpc/ipc.go
@@ -24,17 +24,17 @@ import (
"github.com/ethereum/go-ethereum/p2p/netutil"
)
-// ServeListener accepts connections on l, serving JSON-RPC on them.
+// ServeListener accepts connections on l, serving IPC-RPC on them.
func (srv *Server) ServeListener(l net.Listener) error {
for {
conn, err := l.Accept()
if netutil.IsTemporaryError(err) {
- log.Warn("RPC accept error", "err", err)
+ log.Warn("IPC accept error", "err", err)
continue
} else if err != nil {
return err
}
- log.Trace("Accepted connection", "addr", conn.RemoteAddr())
+ log.Trace("IPC accepted connection")
go srv.ServeCodec(NewJSONCodec(conn), OptionMethodInvocation|OptionSubscriptions)
}
}
?h=mate-1.16&id=fae0ac88fd1a53aeb9fa8ae338fc2dcc9b39520e'>Update to 3.6.5.jkim2013-02-051-2/+2 * KDE/FreeBSD team presents KDE SC 4.9.5 ports!makc2013-02-043-15/+10 * - Deprecate QT3, KDE3 and unmaintained ports depending on them. QT 3.3.8beat2012-12-301-0/+3 * Second round of Makefile cleanups in Arabic ports.danfe2012-12-237-33/+14 * Clean up some maintained ports in arabic category:danfe2012-12-204-106/+71 * - Update to 3.5.7.jkim2012-10-272-7/+2 * - Update to 3.5.6.jkim2012-08-241-2/+2 * Fix typos in COMMENTcs2012-07-231-1/+1 * - Update LibreOffice and the language packs to 3.5.5.jkim2012-07-181-2/+2 * - The FreeBSD Office team is proud to announce LibreOffice.org 3.5.4 releasefluffy2012-07-011-2/+2 * KDE/FreeBSD team presents KDE SC 4.8.4, probably the last release in 4.8.x se...makc2012-06-153-3/+19 * - Convert all remaining instances of BUILD_DEPENDS=${RUN_DEPENDS} orswills2012-06-111-1/+1 * Set maintainership back to ports@cs2012-06-031-1/+1 * - update png to 1.5.10dinoex2012-06-012-1/+2 * - Remove koffice-i18n ports, as they are not very useful withoutavilla2012-05-315-55/+0 * KDE/FreeBSD team presents long awaited KDE SC 4.8.3!makc2012-05-252-9/+13 * - upgrade to 3.5.2bapt2012-04-234-0/+19 * The KDE/FreeBSD team is pleased to announce KDE SC 4.7.4, whichavilla2012-01-251-2/+2 * - Fix WWW addressnivit2011-12-141-1/+1 * - Pass maintainership to office@FreeBSD.orgsunpoet2011-11-291-1/+1 * The KDE on FreeBSD team is pleased to update the KDE4 ports to 4.7.3.rakuco2011-11-141-2/+2 * The KDE/FreeBSD team is pleased to announce KDE Software Compilationavilla2011-10-172-7/+4 * Change maintainer address to my FreeBSD addresscs2011-09-151-1/+1 * Reset maintainership de jure. In fact KDE 3 has not been maintained by our teammakc2011-07-082-2/+2 * Update KDE Software Compilation ports to 4.6.5makc2011-07-082-2/+34 * - kick MD5miwi2011-07-021-1/+0 * The FreeBSD KDE Team is pleased to announce KDE SC 4.6.4. Read fullavilla2011-06-141-2/+2 * Update KDE Software Compilation ports to 4.6.3makc2011-05-172-2/+19 * Bump PORTREVISION after open-mofit updatemakc2011-05-021-1/+1 * The FreeBSD KDE Team is pleased to announce April updates for KDEavilla2011-04-072-2/+19 * The FreeBSD KDE Team is pleased to announce KDE SC 4.6.1 and KDE PIMavilla2011-03-252-16/+9 * - Get Rid MD5 supportmiwi2011-03-195-5/+0 * - Remove unnecessary PKGNAMEPREFIX declarationsunpoet2011-01-094-4/+0 * - The KDE FreeBSD team is proud to announce the release of KDE 4.5.5fluffy2011-01-081-2/+2 * KDE FreeBSD team presents KDE SC 4.5.4.makc2010-12-031-2/+2 * KDE FreeBSD team presents KDE SC 4.5.3.makc2010-11-041-3/+2 * KDE FreeBSD team presents KDE SC 4.5.2.makc2010-10-061-3/+3 * Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-162-4/+2 * KDE FreeBSD team presents KDE SC 4.5.1.makc2010-09-032-74/+34 * Present KDE SC 4.4.5 for FreeBSD.makc2010-06-301-3/+3 * - Update to 2.01.stefan2010-06-284-16/+21 * Present KDE SC 4.4.4 for FreeBSD.makc2010-06-021-3/+3 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-312-2/+2 * Convert LDCONFIG_DIRS to USE_LDCONFIG for unmaintained ports.makc2010-05-241-2/+1 * - The FreeBSD KDE team is pleased to announce KDE SC 4.4.3 for FreeBSDfluffy2010-05-113-28/+11 * - update to 1.4.1dinoex2010-03-284-3/+4 * Presenting KDE 4.3.5 for FreeBSD. The official release notes for thismiwi2010-02-072-4/+3 * - update to jpeg-8dinoex2010-02-054-3/+4 * - Update to 0.7.0wen2010-01-104-50/+6 * - Update to 1.6.2wen2010-01-103-8/+6 * - SUB_FILES += pkg-messagepgollucci2010-01-082-9/+9 * - SUB_FILES += pkg-messagepgollucci2010-01-083-18/+18 * - Use SUB_FILES for pkg-messagepgollucci2010-01-072-3/+3 * The FreeBSD KDE is please to announce the release of KDE 4.3.4,miwi2009-12-021-3/+3 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.3miwi2009-11-272-5/+5 * - Mark MAKE_JOBS_UNSAFEpav2009-11-201-0/+1 * The FreeBSD KDE is please to announce the release of KDE 4.3.1,tabthorpe2009-09-022-6/+6 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-224-7/+4 * Reset sbahra at his request due to lack of time to work on these ports.linimon2009-08-209-18/+6 * clean upmakc2009-08-081-4/+1 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.0miwi2009-08-053-17/+93 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-314-2/+4 * The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-031-3/+3 * Update KDE ports to 4.2.3makc2009-05-101-3/+3 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.2miwi2009-04-022-7/+3 * Update KDE to 4.2.1.makc2009-03-091-3/+3 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.0miwi2009-02-095-290/+275 * The KDE FreeBSD team is proud to announce the releasemiwi2008-08-292-6/+6 * The KDE FreeBSD team is proud to announce the releasemiwi2008-08-182-6/+6 * PHP Documentation in these language has been removed from the distribution.edwin2008-08-042-14/+0 * - Update WWW sitenivit2008-07-291-1/+1 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-062-1/+2 * Removal of arabic/katoobedwin2008-04-309-129/+0 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-2010-35/+34 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-261-2/+1 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-251-2/+1 * - Remove USE_GETOPT_LONG which is a no-op since March 2007pav2008-03-201-1/+0 * Fix distfile location for outdated koffice-l10ns.lofi2007-11-091-1/+1 * Update to KDE 3.5.8lofi2007-10-304-8/+6 * Presenting GNOME 2.20.1 and all related works for FreeBSD. The officialmarcus2007-10-252-13/+14 * Revert more PORTREVISION accidentslofi2007-07-051-0/+1 * Update to KDE 3.5.7 / KOffice 1.6.3lofi2007-07-047-11/+286 * BROKEN with gcc 4.2kris2007-05-271-0/+4 * - Welcome X.org 7.2 \o/.flz2007-05-2010-3/+9 * Release maintainerships.thierry2007-03-161-1/+1 * Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-142-6/+6 * Update maintainer's email address.linimon2007-03-076-6/+6 * Really normalize Aspell dictionaries ports PKGVERSION...thierry2007-02-151-0/+1 * Add Aspell Arabic dictionaries.thierry2007-02-135-0/+32 * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-202-6/+6 * - Updated email address in my portsnivit2006-12-101-1/+1 * Chase the GNOME X11BASE to LOCALBASE move, and fix the build with themarcus2006-10-142-3/+6 * Run ttmkfdir in a writable directory and unbreak.thierry2006-10-031-8/+4 * Run ttmkfdir in a writable directory and unbreak.thierry2006-10-031-7/+3 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-136-16/+10 * Schedule these broken ports for termination on 2006-12-01kris2006-09-032-0/+4 * BROKEN: Does not buildkris2006-08-182-0/+4 * Update to KDE 3.5.3lofi2006-06-062-6/+6 * Update to KOffice 1.5.1lofi2006-05-272-4/+4 * Fix categorieslofi2006-04-301-1/+1 * Update to KOffice 1.5.0lofi2006-04-293-27/+10 * Change maintainer email address.cperciva2006-04-166-6/+6 * Update to KDE 3.5.2lofi2006-03-312-6/+6 * Conversion to a single libtool environment.ade2006-02-231-5/+5 * Update to KDE 3.5.1.lofi2006-02-012-6/+6 * Update to KDE 3.5.0lofi2006-01-094-66/+8 * Add SHA256 message digest to distinfo fileedwin2005-12-271-0/+1 * update: arabic/kde3-i18nedwin2005-12-272-0/+2 * Add SHA256 message digest to distinfo fileedwin2005-12-271-0/+1 * Add SHA256 message digest to distinfo fileedwin2005-12-271-0/+1 * Add SHA256 message digest to distinfo fileedwin2005-12-271-0/+1 * Add SHA256 message digest to distinfo fileedwin2005-12-271-0/+1 * Add SHA256 message digest to distinfo fileedwin2005-12-271-0/+1 * Add SHA256 message digest to distinfo fileedwin2005-12-271-0/+1 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * Update to KDE 3.4.3 / KOffice 1.4.2lofi2005-11-055-8/+6 * Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-1/+1 * Update to KDE 3.4.2 / KOffice 1.4.1lofi2005-08-014-7/+11 * - Update to 1.5 [1]jylefort2005-07-255-18/+21 * This LaTeX package extends the capabilities of TeX/LaTeX to generatepav2005-07-205-0/+250 * Remove openoffice.org localized ports as I announced:maho2005-06-292-16/+0 * Update to KDE 3.4.1lofi2005-06-265-9/+4 * Added slave port of lang/php_doc for the Arabic language.edwin2005-05-232-0/+14