mirror of
				https://github.com/Xahau/xahaud.git
				synced 2025-11-04 02:35:48 +00:00 
			
		
		
		
	Fix ledger sequence on copynode
This commit is contained in:
		
				
					committed by
					
						
						manojsdoshi
					
				
			
			
				
	
			
			
			
						parent
						
							8707c15b9c
						
					
				
				
					commit
					ef53197e1f
				
			@@ -304,8 +304,7 @@ SHAMapStoreImp::copyNode(
 | 
			
		||||
    SHAMapAbstractNode const& node)
 | 
			
		||||
{
 | 
			
		||||
    // Copy a single record from node to dbRotating_
 | 
			
		||||
    dbRotating_->fetchNodeObject(
 | 
			
		||||
        node.getNodeHash().as_uint256(), node.getSeq());
 | 
			
		||||
    dbRotating_->fetchNodeObject(node.getNodeHash().as_uint256());
 | 
			
		||||
    if (!(++nodeCount % checkHealthInterval_))
 | 
			
		||||
    {
 | 
			
		||||
        if (health())
 | 
			
		||||
 
 | 
			
		||||
@@ -211,7 +211,7 @@ private:
 | 
			
		||||
 | 
			
		||||
        for (auto const& key : cache.getKeys())
 | 
			
		||||
        {
 | 
			
		||||
            dbRotating_->fetchNodeObject(key, 0);
 | 
			
		||||
            dbRotating_->fetchNodeObject(key);
 | 
			
		||||
            if (!(++check % checkHealthInterval_) && health())
 | 
			
		||||
                return true;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -128,7 +128,7 @@ public:
 | 
			
		||||
    std::shared_ptr<NodeObject>
 | 
			
		||||
    fetchNodeObject(
 | 
			
		||||
        uint256 const& hash,
 | 
			
		||||
        std::uint32_t ledgerSeq,
 | 
			
		||||
        std::uint32_t ledgerSeq = 0,
 | 
			
		||||
        FetchType fetchType = FetchType::synchronous);
 | 
			
		||||
 | 
			
		||||
    /** Fetch an object without waiting.
 | 
			
		||||
@@ -139,7 +139,8 @@ public:
 | 
			
		||||
 | 
			
		||||
        @note This can be called concurrently.
 | 
			
		||||
        @param hash The key of the object to retrieve
 | 
			
		||||
        @param ledgerSeq The sequence of the ledger where the object is stored.
 | 
			
		||||
        @param ledgerSeq The sequence of the ledger where the
 | 
			
		||||
                object is stored, used by the shard store.
 | 
			
		||||
        @param nodeObject The object retrieved
 | 
			
		||||
        @return Whether the operation completed
 | 
			
		||||
    */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user