rpc: migrated the RPC insterface to a new reflection based RPC layer
This commit is contained in:
		
				
					committed by
					
						
						Jeffrey Wilcke
					
				
			
			
				
	
			
			
			
						parent
						
							f2ab351e8d
						
					
				
				
					commit
					19b2640e89
				
			@@ -27,7 +27,7 @@ import (
 | 
			
		||||
 | 
			
		||||
	"github.com/ethereum/go-ethereum/event"
 | 
			
		||||
	"github.com/ethereum/go-ethereum/p2p"
 | 
			
		||||
	rpc "github.com/ethereum/go-ethereum/rpc/v2"
 | 
			
		||||
	"github.com/ethereum/go-ethereum/rpc"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
@@ -290,6 +290,11 @@ func (n *Node) APIs() []rpc.API {
 | 
			
		||||
			Version:   "1.0",
 | 
			
		||||
			Service:   NewPublicDebugAPI(n),
 | 
			
		||||
			Public:    true,
 | 
			
		||||
		}, {
 | 
			
		||||
			Namespace: "web3",
 | 
			
		||||
			Version:   "1.0",
 | 
			
		||||
			Service:   NewPublicWeb3API(n),
 | 
			
		||||
			Public:    true,
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
	// Inject all the APIs owned by various services
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user