going ahead and indexing the entire uncle blocks (one of the issues open on public); finish tests
This commit is contained in:
+12
-1
@@ -73,7 +73,7 @@ func GetFakeTransaction(hash string, receipt core.Receipt) core.TransactionModel
|
||||
var raw bytes.Buffer
|
||||
err := gethTransaction.EncodeRLP(&raw)
|
||||
if err != nil {
|
||||
panic("failed to marshal transaction creating test fake")
|
||||
panic("failed to marshal transaction while creating test fake")
|
||||
}
|
||||
return core.TransactionModel{
|
||||
Data: []byte{},
|
||||
@@ -89,3 +89,14 @@ func GetFakeTransaction(hash string, receipt core.Receipt) core.TransactionModel
|
||||
Value: "0",
|
||||
}
|
||||
}
|
||||
|
||||
func GetFakeUncle(hash, reward string) core.Uncle {
|
||||
return core.Uncle{
|
||||
Miner: FakeAddress.String(),
|
||||
Hash: hash,
|
||||
BlockHash: FakeHash.String(),
|
||||
Reward: reward,
|
||||
Raw: rawFakeHeader,
|
||||
Timestamp: strconv.FormatInt(fakeTimestamp, 10),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user