From 0c7dc38ac1f73127b30dbf75c09f3eb6aea08f3b Mon Sep 17 00:00:00 2001 From: Cassandra Heart <7929478+CassOnMars@users.noreply.github.com> Date: Wed, 3 Jan 2024 01:49:12 -0600 Subject: [PATCH] V1.2.0 (#32) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * v1.2.0 * one more thing – let's fix the rpc --- node/consensus/ceremony/peer_messaging.go | 5 ++++- node/execution/ceremony/ceremony_execution_engine.go | 5 ++++- node/rpc/rpc_server.go | 10 ++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/node/consensus/ceremony/peer_messaging.go b/node/consensus/ceremony/peer_messaging.go index 07f1a5a..48de54b 100644 --- a/node/consensus/ceremony/peer_messaging.go +++ b/node/consensus/ceremony/peer_messaging.go @@ -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 { diff --git a/node/execution/ceremony/ceremony_execution_engine.go b/node/execution/ceremony/ceremony_execution_engine.go index 8855ac8..fc41ba3 100644 --- a/node/execution/ceremony/ceremony_execution_engine.go +++ b/node/execution/ceremony/ceremony_execution_engine.go @@ -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, ) diff --git a/node/rpc/rpc_server.go b/node/rpc/rpc_server.go index 5b643be..6afc7a6 100644 --- a/node/rpc/rpc_server.go +++ b/node/rpc/rpc_server.go @@ -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")