Felix Lange
90cd8ae9f2
rpc/api: don't crash for unknown blocks
...
Most eth RPC calls that work with blocks crashed when the block was not
found because they called Hash on a nil block. This is a regression
introduced in cdc2662c40
(#1779 ).
While here, remove the insane conversions in get*CountBy*. There is no
need to construct a complete BlockRes and converting
int->int64->*big.Int->[]byte->hexnum->string to format the length of a
slice as hex.
2015-09-22 23:59:26 +02:00
Péter Szilágyi
d4d3fc6a70
jsre, rpc/api: pull in new web3 and use hex numbers
2015-09-15 17:05:12 +03:00
Péter Szilágyi
0a7d059b6a
eth, rpc: standardize the chain sync progress counters
2015-09-15 14:45:53 +03:00
Péter Szilágyi
cdc2662c40
core: split out TD from database and all internals
2015-09-11 17:42:25 +03:00
Gustav Simonsson
d9addf79fa
Improve error string and remove unneeded else clause
2015-08-28 03:42:01 +02:00
Gustav Simonsson
829201382b
rpc: return error code for eth_getWork when no work ready
2015-08-26 12:46:50 +02:00
Jeffrey Wilcke
8839fee415
rpc/api: return boolean value for eth_submitHashrate
2015-08-17 15:09:30 +02:00
Jeffrey Wilcke
c32073b11f
miner, rpc: added submit hashrate for remote agents
2015-08-06 12:58:54 +02:00
Jeffrey Wilcke
33efb3381c
Merge pull request #1461 from bas-vk/eth_resend
...
Old transaction after resend was not removed from pool
2015-08-01 16:18:54 -07:00
Jeffrey Wilcke
d261c3f455
rpc: to in Call no longer required. Fixed eth_estimateGas
2015-07-29 15:12:12 +02:00
Bas van Kervel
7e31df3987
bugfix, pending transaction was resend with new gas price/limit but not removed from transaction pool
2015-07-28 10:42:31 +02:00
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
2015-07-23 18:35:11 +02:00
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
2015-07-22 18:51:45 +02:00
Felix Lange
ea54283b30
all: update license information
2015-07-07 14:12:44 +02:00
Jeffrey Wilcke
666a7dda36
core, eth, rpc: proper gas used. Closes #1417
...
Added some additional backward compatibility code for old receipts
2015-07-06 21:18:24 +02:00
Taylor Gerring
30afd37604
Compose additional fields
2015-07-04 12:03:37 -05:00
Taylor Gerring
3be9046c21
Rename local variable for clarity
2015-07-04 10:24:52 -05:00
Taylor Gerring
80eb8f46b7
Fix hex conversion
2015-07-03 23:46:59 -05:00
Taylor Gerring
3a983d2419
Initial getTransactionReceipt support
2015-07-03 23:03:11 -05:00
Bas van Kervel
8c4d493c66
solved merge conflicts
2015-06-30 15:32:02 +02:00
Bas van Kervel
a5d5387dee
rebase with develop
2015-06-30 15:27:27 +02:00
Bas van Kervel
7ffabf1d39
add json parsing method for resend transaction
2015-06-30 11:20:31 +02:00
Bas van Kervel
6fdddc5ac9
improved error handling in parsing request
2015-06-30 11:20:31 +02:00
Bas van Kervel
ec866b066a
added eth.resend
2015-06-30 11:20:31 +02:00
Bas van Kervel
056e9dd393
added eth.pendingTransactions
2015-06-30 11:20:31 +02:00
Felix Lange
7098ec691c
rpc: unmask pending block fields
...
This pleases the RPC tests.
2015-06-29 18:51:47 +02:00
Bas van Kervel
f9264e87ec
add json parsing method for resend transaction
2015-06-29 12:32:01 +02:00
Bas van Kervel
a355777ff8
improved error handling in parsing request
2015-06-29 11:13:28 +02:00
Bas van Kervel
dc58568a25
added eth.resend
2015-06-24 14:56:53 +02:00
Bas van Kervel
f1a4a6e563
added eth.pendingTransactions
2015-06-24 13:53:37 +02:00
Bas van Kervel
6d596b1ad1
fixed eth sign unittest
2015-06-22 13:19:59 +02:00
Bas van Kervel
2e0b56a72b
added RPC start/stop support
2015-06-22 12:47:32 +02:00
Bas van Kervel
f87501b1c5
added batch support to console and attach actions
2015-06-22 09:17:09 +02:00
Bas van Kervel
3e1d635f8d
fixed rpc test failure in eth.blockNumber
2015-06-22 08:54:21 +02:00
Jeffrey Wilcke
e4f9ec886b
Merge pull request #1267 from SilentCicero/develop
...
eth_sendRawTransaction JSON RPC
2015-06-18 11:33:50 -07:00
SilentCicero
7ec8c257ff
New DataArgs and eth_sendRawTransaction
2015-06-16 12:28:10 -04:00
Nick Dodson
2642e091e9
NewSigArgs arg change.
2015-06-15 16:01:01 -04:00
Jeffrey Wilcke
cc0b451119
Merge pull request #1260 from obscuren/tx-drop-low-tx
...
core: drop low gas tx
2015-06-15 09:09:44 -07:00
obscuren
2628103f1d
rpc/api: fixed default gas-(price) issue.
2015-06-15 17:21:08 +02:00
Nick Dodson
c3b80123e3
Update eth.go
2015-06-15 11:10:24 -04:00
SilentCicero
d6233c7d2d
Changed variable names
2015-06-15 10:07:32 -04:00
zsfelfoldi
b42b70eb5f
fixed rpc/api.GasPrice
2015-06-15 15:55:39 +02:00
SilentCicero
f9a0a13fa9
eth_pushTx send raw signed encoded TX data to the chain through RPC
2015-06-14 18:07:03 -04:00
Bas van Kervel
348f1562e2
restructured eth rpc API
2015-06-11 14:13:57 +02:00
Bas van Kervel
cc9ae39933
added admin API
2015-06-11 14:01:41 +02:00
Bas van Kervel
a1a475fb92
added console command
2015-06-11 14:01:39 +02:00
Bas van Kervel
2f55a1d798
restructured eth rpc API
2015-06-11 14:01:39 +02:00