aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-02 18:57:04 +0800
committerobscuren <geffobscura@gmail.com>2015-04-02 18:57:04 +0800
commit0f3bf7ef4de95b8012eb9bba717323b9e89c5908 (patch)
tree611678435f88b26e0f111e1a485b015085fd30fc /rpc
parent7e13ee602e003ad2a3db6d822d24f220f23d632e (diff)
downloadgo-tangerine-0f3bf7ef4de95b8012eb9bba717323b9e89c5908.tar.gz
go-tangerine-0f3bf7ef4de95b8012eb9bba717323b9e89c5908.tar.zst
go-tangerine-0f3bf7ef4de95b8012eb9bba717323b9e89c5908.zip
Fixes for balance
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 80dd27afb..d9206eb79 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -36,7 +36,7 @@ func (api *EthereumApi) xethAtStateNum(num int64) *xeth.XEth {
func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error {
// Spec at https://github.com/ethereum/wiki/wiki/JSON-RPC
- rpclogger.Debugf("%s %s", req.Method, req.Params)
+ rpclogger.Infof("%s %s", req.Method, req.Params)
switch req.Method {
case "web3_sha3":
@@ -80,8 +80,9 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
return err
}
- v := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address).Balance()
- *reply = common.ToHex(v.Bytes())
+ *reply = api.xethAtStateNum(args.BlockNumber).BalanceAt(args.Address)
+ //v := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address).Balance()
+ //*reply = common.ToHex(v.Bytes())
case "eth_getStorage", "eth_storageAt":
args := new(GetStorageArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {
it.cgi/freebsd-ports-gnome/commit/mail/horde4-turba?h=master&id=4cf83765f715a6c97b942f8d4aca1a8682575872'>Switch to my @FreeBSD.org address.shaun2006-06-201-1/+1 * - Update to 2.1.1pav2006-05-073-7/+6 * make sure I update the PORTREVISIONscrappy2006-04-161-0/+1 * After a recent discussion on freebsd-ports, I have modified the Horde ports, ...scrappy2006-04-164-17/+29 * Adopt the Horde ports.thierry2006-04-101-1/+1 * Release maintainership.thierry2006-04-081-1/+1 * Upgrade to 2.1.thierry2006-03-165-140/+207 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-2/+2 * - Replace WITH_APACHE2 by USE_APACHE, rename httpd.conf.xxx tothierry2006-01-063-8/+16 * Security upgrade to 2.0.5.thierry2005-12-122-3/+4 * Upgrade to 2.0.4.thierry2005-10-193-147/+161 * Upgrade to 2.0.3.thierry2005-08-284-84/+99 * Fix another warning when cyrus-imspd is not used.thierry2005-02-132-0/+150 * Upgrade to 2.0.2: bug fix release (fix a warning in browse view).thierry2005-02-132-3/+3 * Upgrade to 2.0.1.thierry2005-02-122-3/+3 * Don't let RUN_DEPENDS rely on a fixed HORDEDIR.thierry2005-01-161-1/+1 * Upgrade to 2.0.thierry2004-12-268-210/+92 * Switch to the new PHP infrastructure.ale2004-07-191-10/+3 * Remove version checking of LDAP:thierry2004-04-201-10/+1 * Upgrading to Turba 1.2.2.thierry2004-03-173-21/+30 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * mail/turba: upgrading to 1.2.1 & removing IS_INTERACTIVE.edwin2003-09-243-13/+28 * Quick fix for INDEX build breakage by openldap2[012] split.kuriyama2003-08-151-2/+2 * o Replace openldap20 dependency on openldap21lioux2003-06-121-10/+6 * mail/turba & mail/imp3: better support of Apache2.edwin2003-04-131-1/+5 * mail/turba: upgrading to 1.2.edwin2003-03-305-22/+98 * Point dependencies on net/openldap2 to net/openldap20edwin2003-02-241-2/+2 * Point dependencies on net/openldap to net/openldap12edwin2003-02-241-2/+2 * De-pkg-comment.knu2003-02-212-1/+1 * - backup config files + DB suport moved to Hordedirk2003-01-302-23/+34 * Chase libpq version bump.seanc2003-01-041-1/+1 * ${PERL} -> ${REINPLACE_CMD}ijliao2002-06-261-4/+6 * Update to 1.1 final, bump PORTREVISIONpat2002-06-184-36/+23 * Additional patches from maintainer.sobomax2002-05-232-2/+7 * Update to RC3.sobomax2002-05-235-15/+21 * Upgrade to version 1.1 RC2.sada2002-05-164-31/+54 * Move www/horde-devel -> www/horde2 & mail/imp-devel -> mail/imp3sada2002-05-153-7/+6 * Update maintainer addresslioux2002-01-211-1/+1 * add missing file into PLISTijliao2002-01-201-0/+1 * from pr/34013 :ijliao2002-01-201-0/+11 * horde-devel from 2.0 RC3 to 2.0;ijliao2002-01-204-20/+36 * Chase shared library number of sybdb after freetds upgrade.dirk2001-12-271-1/+1 * forgot to remove it at last commitijliao2001-12-171-12/+0 * upgrade to RC3ijliao2001-12-135-30/+21