mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 01:40:44 +00:00
core: fix unused warnings (#1811)
This commit is contained in:
parent
940fd2adbd
commit
5ada9b8866
6 changed files with 0 additions and 21 deletions
|
|
@ -742,7 +742,6 @@ func TestPostponing(t *testing.T) {
|
||||||
// Add a batch consecutive pending transactions for validation
|
// Add a batch consecutive pending transactions for validation
|
||||||
txs := []*types.Transaction{}
|
txs := []*types.Transaction{}
|
||||||
for i, key := range keys {
|
for i, key := range keys {
|
||||||
|
|
||||||
for j := 0; j < 10; j++ {
|
for j := 0; j < 10; j++ {
|
||||||
var tx *types.Transaction
|
var tx *types.Transaction
|
||||||
if (i+j)%2 == 0 {
|
if (i+j)%2 == 0 {
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,6 @@ func (b Bloom) Test(test *big.Int) bool {
|
||||||
|
|
||||||
func (b Bloom) TestBytes(test []byte) bool {
|
func (b Bloom) TestBytes(test []byte) bool {
|
||||||
return b.Test(new(big.Int).SetBytes(test))
|
return b.Test(new(big.Int).SetBytes(test))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalText encodes b as a hex string with 0x prefix.
|
// MarshalText encodes b as a hex string with 0x prefix.
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,6 @@ func (lendingsign LendingTxSigner) Sender(tx *LendingTransaction) (common.Addres
|
||||||
}
|
}
|
||||||
address := crypto.PubkeyToAddress(*pubKey)
|
address := crypto.PubkeyToAddress(*pubKey)
|
||||||
return address, nil
|
return address, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CacheLendingSigner cache signed lending transaction
|
// CacheLendingSigner cache signed lending transaction
|
||||||
|
|
|
||||||
|
|
@ -87,8 +87,6 @@ var (
|
||||||
to3 = common.HexToAddress("0x3")
|
to3 = common.HexToAddress("0x3")
|
||||||
to4 = common.HexToAddress("0x4")
|
to4 = common.HexToAddress("0x4")
|
||||||
to5 = common.HexToAddress("0x5")
|
to5 = common.HexToAddress("0x5")
|
||||||
to6 = common.HexToAddress("0x6")
|
|
||||||
to7 = common.HexToAddress("0x7")
|
|
||||||
txs = Transactions{
|
txs = Transactions{
|
||||||
NewTx(&LegacyTx{
|
NewTx(&LegacyTx{
|
||||||
Nonce: 1,
|
Nonce: 1,
|
||||||
|
|
@ -130,7 +128,6 @@ var (
|
||||||
}
|
}
|
||||||
|
|
||||||
blockNumber = big.NewInt(1)
|
blockNumber = big.NewInt(1)
|
||||||
blockTime = uint64(2)
|
|
||||||
blockHash = common.BytesToHash([]byte{0x03, 0x14})
|
blockHash = common.BytesToHash([]byte{0x03, 0x14})
|
||||||
|
|
||||||
// Create the corresponding receipts
|
// Create the corresponding receipts
|
||||||
|
|
|
||||||
|
|
@ -62,19 +62,6 @@ type RingSignature struct {
|
||||||
SerializedRing []byte //temporary memory stored the raw ring ct used in case of verifying ringCT with message verification
|
SerializedRing []byte //temporary memory stored the raw ring ct used in case of verifying ringCT with message verification
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PrivateSendVerifier) verify() bool {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p *PrivateSendVerifier) deserialize() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// helper function, returns type of v
|
|
||||||
func typeof(v interface{}) string {
|
|
||||||
return fmt.Sprintf("%T", v)
|
|
||||||
}
|
|
||||||
|
|
||||||
func isOdd(a *big.Int) bool {
|
func isOdd(a *big.Int) bool {
|
||||||
return a.Bit(0) == 1
|
return a.Bit(0) == 1
|
||||||
}
|
}
|
||||||
|
|
@ -195,7 +182,6 @@ func computeSignatureSize(numRing int, ringSize int) int {
|
||||||
if term < 0 || term < numRing || term < ringSize {
|
if term < 0 || term < numRing || term < ringSize {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
return 8 + 8 + 32 + 32 + numRing*ringSize*32 + numRing*ringSize*33 + numRing*33
|
return 8 + 8 + 32 + 32 + numRing*ringSize*32 + numRing*ringSize*33 + numRing*33
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -491,7 +491,6 @@ func TestEip2929Cases(t *testing.T) {
|
||||||
t.Skip("Test only useful for generating documentation")
|
t.Skip("Test only useful for generating documentation")
|
||||||
id := 1
|
id := 1
|
||||||
prettyPrint := func(comment string, code []byte) {
|
prettyPrint := func(comment string, code []byte) {
|
||||||
|
|
||||||
instrs := make([]string, 0)
|
instrs := make([]string, 0)
|
||||||
it := asm.NewInstructionIterator(code)
|
it := asm.NewInstructionIterator(code)
|
||||||
for it.Next() {
|
for it.Next() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue