dont OR asset mask

pull/541/head
sidhujag 2020-09-08 12:24:31 -07:00
parent 1e6871fa3b
commit df76c23c98
2 changed files with 1 additions and 3 deletions

View File

@ -727,8 +727,6 @@ func addToAddressesMap(addresses bchain.AddressesMap, strAddrDesc string, btxID
for i, t := range at {
if bytes.Equal(btxID, t.BtxID) {
at[i].Indexes = append(t.Indexes, index)
// add the mask to the existing type incase there are multiple types in one transaction (ie: asset update + asset allocation send + syscoin send)
at[i].Type |= assetsMask
return true
}
}

View File

@ -184,7 +184,7 @@ func verifyAfterSyscoinTypeBlock2(t *testing.T, d *RocksDB) {
if err := checkColumn(d, cfAddresses, []keyPair{
{addressKeyHex(dbtestdata.AddrS1, 112, d), txIndexesHexSyscoin(dbtestdata.TxidS1T0, bchain.BaseCoinMask, []int32{0}, d), nil},
{addressKeyHex(dbtestdata.AddrS2, 112, d), txIndexesHexSyscoin(dbtestdata.TxidS1T1, bchain.AssetActivateMask, []int32{1}, d), nil},
{addressKeyHex(dbtestdata.AddrS2, 113, d), txIndexesHexSyscoin(dbtestdata.TxidS2T1, bchain.AssetActivateMask, []int32{^0}, d), nil},
{addressKeyHex(dbtestdata.AddrS2, 113, d), txIndexesHexSyscoin(dbtestdata.TxidS2T1, bchain.AssetUpdateMask, []int32{^0}, d), nil},
{addressKeyHex(dbtestdata.AddrS3, 113, d), txIndexesHexSyscoin(dbtestdata.TxidS2T0, bchain.BaseCoinMask, []int32{0}, d), nil},
{addressKeyHex(dbtestdata.AddrS4, 113, d), txIndexesHexSyscoin(dbtestdata.TxidS2T1, bchain.AssetUpdateMask, []int32{1}, d), nil},
}); err != nil {