mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Integrate til into api
This commit is contained in:
@@ -17,7 +17,7 @@ type testSlot struct {
|
||||
FirstBlock int64 `json:"firstBlock"`
|
||||
LastBlock int64 `json:"lastBlock"`
|
||||
OpenAuction bool `json:"openAuction"`
|
||||
WinnerBid *testBid `json:"winnerBid"`
|
||||
WinnerBid *testBid `json:"bestBid"`
|
||||
}
|
||||
|
||||
type testSlotsResponse struct {
|
||||
@@ -35,6 +35,8 @@ func (t testSlotsResponse) Len() int {
|
||||
return len(t.Slots)
|
||||
}
|
||||
|
||||
func (t testSlotsResponse) New() Pendinger { return &testSlotsResponse{} }
|
||||
|
||||
func (a *API) genTestSlots(nSlots int, lastBlockNum int64, bids []testBid, auctionVars common.AuctionVariables) []testSlot {
|
||||
tSlots := []testSlot{}
|
||||
bestBids := make(map[int64]testBid)
|
||||
|
||||
Reference in New Issue
Block a user