mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
* updating the goethereum dependency * fixing dependencies * reverting workspace * more fixes, work in progress * trying with upgraded geth version * fixing deprecated functions except for the time related ones on eth1 distance due to time issues * fixing time issues * gaz * fixing test and upgrading some dependencies and reverting others * Disable cgo in hid, delete old vendored usb library * changelog * rolling back dependencies * fixing go mod tidy * Geth v1.13.6 * fix tests * Add ping interval, set to 500ms for tests. This didnt work * Update to v1.14.8 * Spread it out to different bootnodes * Fix it * Remove Memsize * Update all out of date dependencies * Fix geth body change * Fix Test * Fix Build * Fix Tests * Fix Tests Again * Fix Tests Again * Fix Tests * Fix Test * Copy USB Package for HID * Push it up * Finally fix all tests with felix's changes * updating geth dependency * Update go-ethereum to v1.14.11 * fixing import * reverting blob change * fixing Implicit memory aliasing in for loop. * WIP changes * wip getting a little further on e2e runs * getting a little further * getting a little further * setting everything to capella * more partial fixes * more fixes but still WIP * fixing access list transactions" * some cleanup * making configs dynamic * reverting time * skip lower bound in builder * updating to geth v1.14.12 * fixing verify blob to pointer * go mod tidy * fixing linting * missed removing another terminal difficulty item * another missed update * updating more dependencies to fix cicd * fixing holiman dependency update * downgrading geth to 1.14.11 due to p2p loop issue * reverting builder middleware caused by downgrade * fixing more rollback issues * upgrading back to 1.14.12 after discussing with preston * mod tidy * gofmt * partial review feedback * trying to start e2e from bellatrix instead * reverting some changes --------- Co-authored-by: Preston Van Loon <preston@pvl.dev> Co-authored-by: nisdas <nishdas93@gmail.com>
41 lines
1.6 KiB
Go
41 lines
1.6 KiB
Go
// usb - Self contained USB and HID library for Go
|
|
// Copyright 2017 The library Authors
|
|
//
|
|
// This library is free software: you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License as published by the Free
|
|
// Software Foundation, either version 3 of the License, or (at your option) any
|
|
// later version.
|
|
//
|
|
// The library is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
// A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Lesser General Public License along
|
|
// with the library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
package hid
|
|
|
|
// RawDevice is a live raw USB connected device handle. On platforms that this file
|
|
// implements, the type lacks the actual USB device and all methods are noop.
|
|
type RawDevice struct {
|
|
DeviceInfo // Embed the infos for easier access
|
|
}
|
|
|
|
// Close releases the USB device handle. On platforms that this file implements,
|
|
// the method is just a noop.
|
|
func (dev *RawDevice) Close() error {
|
|
return ErrUnsupportedPlatform
|
|
}
|
|
|
|
// Write sends a binary blob to a USB device. On platforms that this file
|
|
// implements, the method just returns an error.
|
|
func (dev *RawDevice) Write(b []byte) (int, error) {
|
|
return 0, ErrUnsupportedPlatform
|
|
}
|
|
|
|
// Read retrieves a binary blob from a USB device. On platforms that this file
|
|
// implements, the method just returns an error.
|
|
func (dev *RawDevice) Read(b []byte) (int, error) {
|
|
return 0, ErrUnsupportedPlatform
|
|
}
|