Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-ethereum / vapor compatibility #41

Open
5 of 13 tasks
jorisbontje opened this issue Mar 7, 2015 · 17 comments
Open
5 of 13 tasks

node-ethereum / vapor compatibility #41

jorisbontje opened this issue Mar 7, 2015 · 17 comments

Comments

@jorisbontje
Copy link
Owner

  • missing RPC method eth_accounts
  • missing RPC method eth_coinbase
  • missing RPC method eth_defaultBlock
  • missing RPC method eth_logs
  • missing RPC method eth_mining
  • RPC method eth_codeAt returning Buffer instead of hexstring
  • RPC method eth_balanceAt returning empty string for 0 balance instead of 0x.
  • RPC method eth_blockByNumber throws 500.
  • RPC method eth_listening throws 500. RPC eth_listening throws error ethereum/node-ethereum#52
  • RPC method eth_number not returning any result.
  • RPC methods returning hex strings lack 0x prefix
  • RPC errors throw 500 instead of returning Error object. xhrrpc does not return error ethereum/node-ethereum#49
  • vapor requires all dapp assets to exist in a single html file
@wanderer
Copy link

wanderer commented Mar 7, 2015

whoa nice i love checklists!

@wanderer
Copy link

wanderer commented Mar 7, 2015

@wanderer
Copy link

wanderer commented Mar 7, 2015

@kumavis is eth_accounts in vapor?

@wanderer
Copy link

wanderer commented Mar 7, 2015

listing should be fixed ethereum/node-ethereum#52

@kumavis
Copy link
Contributor

kumavis commented Mar 7, 2015

eth_accounts and eth_coinbase are covered in vapor. Correct behavior of the coinbase op code for the vapor backing server is not clear yet. I would imagine we'd tell the vm to use the sender's address as the coinbase whenever they send a transact or call

@wanderer
Copy link

wanderer commented Mar 8, 2015

oh the coinbase opcode is well defined. it just gives back the coinbase of the block that mined the tx. for eth_accounts i just stubed it out and it will just return [] incase someone tries to use it

@wanderer
Copy link

wanderer commented Mar 8, 2015

eth_codeAt should be fixed now

@wanderer
Copy link

wanderer commented Mar 8, 2015

for eth_balanceAt returning 0x is silly. is that really nessicary?

@kumavis
Copy link
Contributor

kumavis commented Mar 8, 2015

Correct behavior of the coinbase op code for the vapor backing server is not clear yet.

I don't mean in general. Like what do dapp builders expect the opcode to mean? Dapps should not care about mining at all, so they much be using it as a proxy for something else. primary identity of user of the dapp? yeah probably.
Edit: kinda confused eth.coinbase and coinbase op code there. why is it an opcode? whats the usecase?

@wanderer
Copy link

wanderer commented Mar 8, 2015

ok blockbynumber is returning blocks now

@wanderer
Copy link

wanderer commented Mar 8, 2015

@kumavis coinbase is sort of controversial opcode. but one use is using like a PRNG

@wanderer
Copy link

wanderer commented Mar 8, 2015

ok eth_number is returning a number

@kumavis
Copy link
Contributor

kumavis commented Mar 8, 2015

@wanderer hmmm weird. Maybe offer a PRNG opcode that is derived from the coinbase? weird. kinda sticky situation.

@jorisbontje
Copy link
Owner Author

@kumavis @wanderer I don't really need coinbase actually, but I have it on my command line testing tools to verify if mining is working and which of my node(s) is doing the mining.

@wanderer
Copy link

wanderer commented Mar 9, 2015

ok working on methods returning hex strings lack 0x prefix

@kumavis
Copy link
Contributor

kumavis commented Mar 10, 2015

"vapor requires all dapp assets to exist in a single html file" is of course a vapor bug -- but I anticipate putting this off for awhile to see how dapp-requesting settles

Here is the current doc on the subject, clearly in flux
https://github.com/ethereum/wiki/wiki/URL-Hint-Protocol

@kumavis
Copy link
Contributor

kumavis commented Mar 10, 2015

I've used this before to inline external assets into a single html file https://github.com/substack/html-inline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants