Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
update avalanchego
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Apr 13, 2022
1 parent aa507e6 commit 03a9ff7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 321 deletions.
14 changes: 3 additions & 11 deletions cmd/blobvm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/ava-labs/avalanchego/vms/rpcchainvm"
"github.com/ava-labs/blobvm/cmd/blobvm/version"
"github.com/ava-labs/blobvm/vm"
"github.com/hashicorp/go-plugin"
log "github.com/inconshreveable/log15"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -54,17 +53,10 @@ func main() {
// TODO: serve separate endpoint for range query
// e.g., GET http://localhost/vm/foo returns "bar"
func runFunc(cmd *cobra.Command, args []string) error {
plugin.Serve(&plugin.ServeConfig{
HandshakeConfig: rpcchainvm.Handshake,
Plugins: map[string]plugin.Plugin{
"vm": rpcchainvm.New(&vm.VM{AirdropData: AirdropData}),
},
rpcchainvm.Serve(&vm.VM{AirdropData: AirdropData})

// A non-nil value here enables gRPC serving for this plugin...
GRPCServer: plugin.DefaultGRPCServer,
})

// Remove reference so VM can free when ready
// Remove airdrop reference so VM can free memory
AirdropData = nil

return nil
}
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ go 1.17
// go get -v github.com/onsi/ginkgo/[email protected]

require (
github.com/ava-labs/avalanchego v1.7.8
github.com/ava-labs/avalanchego v1.7.10
github.com/ethereum/go-ethereum v1.10.16
github.com/fatih/color v1.13.0
github.com/golang/mock v1.6.0
github.com/gorilla/rpc v1.2.0
github.com/hashicorp/go-plugin v1.4.3
github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac
github.com/onsi/ginkgo/v2 v2.1.0
github.com/onsi/gomega v1.17.0
Expand All @@ -28,7 +27,9 @@ require (
github.com/go-stack/stack v1.8.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/hashicorp/go-hclog v1.0.0 // indirect
github.com/hashicorp/go-plugin v1.4.3 // indirect
github.com/hashicorp/yamux v0.0.0-20200609203250-aecfd211c9ce // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/linxGnu/grocksdb v1.6.34 // indirect
Expand Down
Loading

0 comments on commit 03a9ff7

Please sign in to comment.