github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/store/orgchain/votepool/ext_vote_pool.go (about) 1 package votepool 2 3 import ( 4 "sync" 5 6 "github.com/sixexorg/magnetic-ring/common" 7 ) 8 9 var ExtVotePool = &extVotePool{ 10 pool: make(map[uint64]map[common.Hash]struct{}, 1024), 11 prepare: make(map[uint64][]common.Hash, 3), 12 } 13 14 //it only pushes in votes that require a response to a failed result 15 type extVotePool struct { 16 //Key:endHeight val:txHash 17 pool map[uint64]map[common.Hash]struct{} 18 prepare map[uint64][]common.Hash 19 m sync.Mutex 20 }