* v1.2.0

* one more thing – let's fix the rpc
This commit is contained in:
Cassandra Heart 2024-01-03 01:49:12 -06:00 committed by GitHub
parent 2e2a1e4789
commit 0c7dc38ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 4 deletions

View File

@ -318,7 +318,10 @@ func (e *CeremonyDataClockConsensusEngine) decompressAndStoreCandidates(
}
if err = e.handleClockFrameData(
e.syncingTarget,
application.CEREMONY_ADDRESS,
append(
p2p.GetBloomFilter(application.CEREMONY_ADDRESS, 256, 3),
p2p.GetBloomFilterIndices(application.CEREMONY_ADDRESS, 65536, 24)...,
),
any,
true,
); err != nil {

View File

@ -1101,7 +1101,10 @@ func (e *CeremonyExecutionEngine) VerifyExecution(
}
parent, err := e.clockStore.GetParentDataClockFrame(
application.CEREMONY_ADDRESS,
append(
p2p.GetBloomFilter(application.CEREMONY_ADDRESS, 256, 3),
p2p.GetBloomFilterIndices(application.CEREMONY_ADDRESS, 65536, 24)...,
),
frame.FrameNumber-1,
frame.ParentSelector,
)

View File

@ -235,7 +235,10 @@ func (r *RPCServer) GetTokenInfo(
addrBytes = append(make([]byte, 32-len(addrBytes)), addrBytes...)
frame, err := r.clockStore.GetLatestDataClockFrame(
application.CEREMONY_ADDRESS,
append(
p2p.GetBloomFilter(application.CEREMONY_ADDRESS, 256, 3),
p2p.GetBloomFilterIndices(application.CEREMONY_ADDRESS, 65536, 24)...,
),
nil,
)
if err != nil {
@ -307,7 +310,10 @@ func (r *RPCServer) GetTokenInfo(
}
candidateFrame, err := r.clockStore.GetHighestCandidateDataClockFrame(
application.CEREMONY_ADDRESS,
append(
p2p.GetBloomFilter(application.CEREMONY_ADDRESS, 256, 3),
p2p.GetBloomFilterIndices(application.CEREMONY_ADDRESS, 65536, 24)...,
),
)
if err != nil {
return nil, errors.Wrap(err, "get token info")